foo.c: In function 'main':
foo.c:6:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
6 | for(i=0;i<=20;i++)
| ^~~
foo.c:8:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
8 | printf("%d",zhuan(x[i]));
| ^~~~~~
foo.c:8:29: warning: passing argument 1 of 'zhuan' makes pointer from integer without a cast [-Wint-conversion]
8 | printf("%d",zhuan(x[i]));
| ~^~~
| |
| int
foo.c:2:16: note: expected 'int *' but argument is of type 'int'
2 | int zhuan(int a[]);
| ~~~~^~~
foo.c:8:29: warning: array subscript 21 is above array bounds of 'int[20]' [-Warray-bounds]
8 | printf("%d",zhuan(x[i]));
| ~^~~
foo.c:5:6: note: while referencing 'x'
5 | {int x[20],i;
| ^
[Hydro](https://hydro.ac)提供评测服务