记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:17:33: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   17 |                                 if(c=='+')
      |                                 ^~
foo.cc:19:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   19 |                                         e=x;
      |                                         ^
foo.cc:20:33: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   20 |                                 if(c=='-')
      |                                 ^~
foo.cc:22:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   22 |                                         e=x;
      |                                         ^
foo.cc:26:15: warning: 'e' may be used uninitialized in this function [-Wmaybe-uninitialized]
   26 |         cout<<e;
      |               ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1 > 3 1a3 > 2 4ms 256.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Wrong Answer 1a2,3 > 1 > 1 2ms 256.0 KiB
#4 Wrong Answer Read 1, expect 2. 3ms 256.0 KiB
#5 Wrong Answer 0a1,2 > 2 > 3 4ms 256.0 KiB
#6 Wrong Answer 0a1 > 2 3ms 256.0 KiB
#7 Wrong Answer 0a1,3 > 3 > 4 > 4 1a5,6 > 5 2ms 256.0 KiB
#8 Wrong Answer Read 1, expect 2. 4ms 256.0 KiB
#9 Wrong Answer 0a1 > 2 1a3,6 > 4 > 4 > 3 2ms 256.0 KiB
#10 Wrong Answer Read 1, expect 2. 2ms 256.0 KiB
#11 Wrong Answer Read 1, expect 2. 2ms 256.0 KiB
#12 Wrong Answer Read 1, expect 3. 2ms 256.0 KiB
#13 Wrong Answer Read 1, expect 4. 2ms 256.0 KiB
#14 Wrong Answer 0a1,4 > 3 > 2 > 5 > 2 1a6, 2ms 256.0 KiB
#15 Wrong Answer Read 1, expect 4. 2ms 256.0 KiB
#16 Wrong Answer 0a1 > 12 1a3,80 > 4 > 11 > 2ms 256.0 KiB
#17 Wrong Answer Read 1, expect 8. 2ms 256.0 KiB
#18 Wrong Answer 0a1,75 > 2 > 2 > 5 > 2 > 3 1ms 256.0 KiB
#19 Wrong Answer 0a1,3 > 4 > 4 > 2 1a5,65 > 2ms 256.0 KiB
#20 Wrong Answer Read 1, expect 17. 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1234 D 奇怪的程序(Easy)
比赛
2022暑期青少年社团(告别赛)
语言
C++
递交时间
2022-08-21 20:11:17
评测时间
2022-08-21 20:11:17
评测机
分数
5
总耗时
55ms
峰值内存
384.0 KiB