foo.c: In function 'main':
foo.c:9:25: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
9 | scanf("%d",a[i]);
| ~^ ~~~~
| | |
| | int
| int *
foo.c:10:9: note: '-Wmisleading-indentation' is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
10 | for(j=0;j<n;j++)
| ^~~
foo.c:10:9: note: adding '-flarge-source-files' will allow for more column-tracking support, at the expense of compilation time and memory
foo.c:18:1: error: expected declaration or statement at end of input
18 | }
| ^
[Hydro](https://hydro.ac)提供评测服务