记录详情

Wrong Answer

foo.cc: In function 'double evalexpression(const std::string&)':
foo.cc:35:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   35 |     while (idx < expression.size()) {
      |            ~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:42:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   42 |             while (idx < expression.size() && (isdigit(expression[idx]) || expression[idx] == '.')) {
      |                    ~~~~^~~~~~~~~~~~~~~~~~~
foo.cc: In function 'double calculate(double, double, char)':
foo.cc:28:1: warning: control reaches end of non-void function [-Wreturn-type]
   28 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Wrong Answer Read 41799.5, expect 41799. 3ms 412.0 KiB
#4 Wrong Answer Read 3.62778e+06, expect 3627776. 4ms 412.0 KiB
#5 Accepted 4ms 328.0 KiB
#6 Wrong Answer Read -130.273, expect -10. 3ms 412.0 KiB
#7 Wrong Answer Read -1.10227e+06, expect -1102269. 3ms 412.0 KiB
#8 Accepted 4ms 412.0 KiB
#9 Accepted 3ms 412.0 KiB
#10 Wrong Answer Read 46299.3, expect 45794. 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1033 s-0-4表达式求值
语言
C++
递交时间
2023-10-19 16:32:02
评测时间
2023-10-19 16:32:02
评测机
分数
50
总耗时
41ms
峰值内存
412.0 KiB