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)提供评测服务