记录详情

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:19:21: error: 'i' undeclared (first use in this function)
     for(int j=0;j<n-i;j++)
                     ^
/in/foo.c:19:21: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:29:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if(a[i]==1)
    ^~
/in/foo.c:31:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     break;
     ^~~~~
/in/foo.c:31:5: error: break statement not within loop or switch

信息

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