foo.c: In function 'main':
foo.c:5:13: error: redeclaration of 'y' with no linkage
5 | int y=[32];
| ^
foo.c:4:11: note: previous declaration of 'y' with type 'int'
4 | int x,y,a,b=0,q=2;
| ^
foo.c:5:15: error: expected expression before '[' token
5 | int y=[32];
| ^
foo.c:9:22: error: 'n' undeclared (first use in this function)
9 | a=(x%n);
| ^
foo.c:9:22: note: each undeclared identifier is reported only once for each function it appears in
foo.c:10:18: error: subscripted value is neither array nor pointer nor vector
10 | y[b]=c;
| ^
foo.c:10:22: error: 'c' undeclared (first use in this function)
10 | y[b]=c;
| ^
foo.c:14:23: error: 'i' undeclared (first use in this function)
14 | for (b--;b>=0;i--)
| ^
foo.c:5:13: warning: variable 'y' set but not used [-Wunused-but-set-variable]
5 | int y=[32];
| ^
foo.c:4:13: warning: variable 'a' set but not used [-Wunused-but-set-variable]
4 | int x,y,a,b=0,q=2;
| ^
[Hydro](https://hydro.ac)提供评测服务