记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:9:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   { for(int i=0;i<100;i++)
     ^~~
/in/foo.c:10:14: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
     a[i]=x%2;x=x/2;
              ^
/in/foo.c:11:10: error: 'i' undeclared (first use in this function)
     if(a[i]!=0&&a[i]!=1)
          ^
/in/foo.c:11:10: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:12:6: error: break statement not within loop or switch
      break;
      ^~~~~
/in/foo.c:16:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
      {for(int i=0;i<100;i++)
       ^~~
/in/foo.c:17:14: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
     a[i]=x%2;x=x/2;
              ^
/in/foo.c:18:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(a[i]!=0&&a[i]!=1)
     ^~
/in/foo.c:20:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
      break;
      ^~~~~
/in/foo.c:20:6: error: break statement not within loop or switch

信息

递交者
类型
自测
题目
位的序号
语言
C
递交时间
2018-12-01 23:52:20
评测时间
2018-12-01 23:52:20
评测机
分数
0
总耗时
13ms
峰值内存
2.918 MiB