Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=0;i<10;i++)
  ^~~
/in/foo.cc:12:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   cout<<sum;
   ^~~~
/in/foo.cc:11:19: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(x>=a[i])sum++;
                   ^
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 212.0 KiB
#2 Wrong Answer 1ms 216.0 KiB
#3 Wrong Answer 1ms 228.0 KiB
#4 Wrong Answer 1ms 220.0 KiB
#5 Wrong Answer 1ms 220.0 KiB
#6 Wrong Answer 1ms 216.0 KiB
#7 Wrong Answer 1ms 224.0 KiB
#8 Wrong Answer 1ms 220.0 KiB
#9 Wrong Answer 1ms 220.0 KiB
#10 Wrong Answer 1ms 216.0 KiB

信息

递交者
类型
递交
比赛
2021.5.26本周数组练习(学校社团专练)
语言
C++
递交时间
2021-06-02 16:39:09
评测时间
2021-06-02 16:39:09
评测机
分数
0
总耗时
18ms
峰值内存
228.0 KiB