Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
      if(h+30>=a[i])
      ^~
/in/foo.cc:14:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   cout<<cnt;      
   ^~~~
/in/foo.cc:12:18: warning: array subscript is above array bounds [-Warray-bounds]
      if(h+30>=a[i])
               ~~~^
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 216.0 KiB
#2 Wrong Answer 1ms 216.0 KiB
#3 Accepted 1ms 220.0 KiB
#4 Wrong Answer 1ms 220.0 KiB
#5 Wrong Answer 1ms 224.0 KiB
#6 Wrong Answer 1ms 216.0 KiB
#7 Wrong Answer 1ms 220.0 KiB
#8 Wrong Answer 1ms 216.0 KiB
#9 Wrong Answer 1ms 216.0 KiB
#10 Wrong Answer 1ms 216.0 KiB

信息

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