记录详情

Runtime Error

/in/foo.c:5:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main()
      ^~~~
/in/foo.c: In function 'main':
/in/foo.c:17:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for(i=49;a[i]==0;i--) ;
    ^~~
/in/foo.c:18:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    {for(;i>=0;i--)
    ^
/in/foo.c:21:11: warning: 'return' with a value, in function returning void
    return 0;
           ^
/in/foo.c:5:6: note: declared here
 void main()
      ^~~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 196.0 KiB
#2 Runtime Error 1ms 188.0 KiB
#3 Runtime Error 1ms 196.0 KiB
#4 Runtime Error 1ms 188.0 KiB
#5 Runtime Error 1ms 196.0 KiB

信息

递交者
类型
递交
题目
2-5 二进制表达式求值
比赛
南师大2018年蓝桥杯热身赛
语言
C
递交时间
2018-12-12 14:17:25
评测时间
2018-12-12 14:17:42
评测机
分数
0
总耗时
5ms
峰值内存
196.0 KiB