记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:9: error: variable-sized object may not be initialized
    7 |         int survive[L+1]={0};
      |         ^~~
foo.c:8:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    8 |         for(int i=0;i<m;i++);
      |         ^~~
foo.c:9:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    9 |         {
      |         ^
foo.c:16:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   16 |         for(int i=1;i<m;i++);
      |         ^~~
foo.c:17:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   17 |         {
      |         ^
foo.c:18:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   18 |                 if(survive[i]==0);
      |                 ^~
foo.c:19:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   19 |                 {
      |                 ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1017 校门外的树
语言
C
递交时间
2022-08-25 10:46:07
评测时间
2022-08-25 10:46:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes