记录详情

Compile Error

/in/foo.c: In function 'noco':
/in/foo.c:17:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(i=1;i-k<=2*(num-1);i=i+2)
   ^~~
/in/foo.c:19:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    if(n*n*n==(2*i+num-1)*num/2) break;
    ^~
/in/foo.c:19:33: error: break statement not within loop or switch
    if(n*n*n==(2*i+num-1)*num/2) break;
                                 ^~~~~
/in/foo.c:20:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(j=0;j<num;i=i+2)
  ^~~
/in/foo.c:22:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   return num;
   ^~~~~~

信息

递交者
类型
递交
题目
3-2 编程题
语言
C
递交时间
2019-10-19 13:06:58
评测时间
2019-10-19 13:06:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes