记录详情

Runtime Error

/in/foo.cc:6:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
 #pragma warning(disable:4996)
 
/in/foo.cc: In function 'double Expression_Eval(char*)':
/in/foo.cc:121:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    while (s[i] >= '0' && s[i] <= '9' || s[i] == '.')
           ~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:163:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
 printf("%d",Expression_Eval(s));
                               ^
/in/foo.cc: In function 'int ch_to_i(char)':
/in/foo.cc:88:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'double Operate(double, char, double)':
/in/foo.cc:108:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 212.0 KiB
#2 Wrong Answer 1ms 228.0 KiB
#3 Wrong Answer 1ms 216.0 KiB
#4 Runtime Error 1ms 228.0 KiB
#5 Wrong Answer 1ms 216.0 KiB
#6 Wrong Answer 1ms 228.0 KiB
#7 Runtime Error 1ms 216.0 KiB
#8 Wrong Answer 1ms 228.0 KiB
#9 Wrong Answer 1ms 216.0 KiB
#10 Wrong Answer 1ms 228.0 KiB

信息

递交者
类型
递交
题目
P1033 s-0-4表达式求值
语言
C++
递交时间
2020-10-17 16:59:42
评测时间
2020-10-17 16:59:42
评测机
分数
0
总耗时
14ms
峰值内存
228.0 KiB