foo.c: In function 'main':
foo.c:16:25: error: expected expression before 'int'
16 | int i=2;
| ^~~
foo.c:15:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
15 | else
| ^~~~
foo.c:17:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
17 | printf("1 1 ");
| ^~~~~~
foo.c:18:31: error: 'i' undeclared (first use in this function)
18 | while(i<=n)
| ^
foo.c:18:31: note: each undeclared identifier is reported only once for each function it appears in
[Hydro](https://hydro.ac)提供评测服务