记录详情

Runtime Error

/in/foo.c: In function 'prime':
/in/foo.c:7:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=2;i<=sqrt(n);i++)//一改错
  ^~~
/in/foo.c:10:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   return flag;
   ^~~~~~
/in/foo.c: In function 'fun':
/in/foo.c:20:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=3;i<=n;i++)
  ^~~
/in/foo.c:24:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   return k; 
   ^~~~~~
/in/foo.c: In function 'fun1':
/in/foo.c:33:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=m*m;i<n*n;i++) 
  ^~~
/in/foo.c:36:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   return k; 
   ^~~~~~
/in/foo.c: At top level:
/in/foo.c:41:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main() 
      ^~~~
# 状态 耗时 内存占用
#1 Runtime Error 0ms 212.0 KiB
#2 Runtime Error 0ms 216.0 KiB
#3 Runtime Error 0ms 220.0 KiB
#4 Runtime Error 0ms 216.0 KiB
#5 Runtime Error 0ms 212.0 KiB

信息

递交者
类型
递交
题目
8-1 改错题
语言
C
递交时间
2019-08-25 16:45:50
评测时间
2019-08-25 16:45:50
评测机
分数
0
总耗时
3ms
峰值内存
220.0 KiB