foo.c: In function 'main':
foo.c:8:29: error: 'a' undeclared (first use in this function)
8 | scanf("%d",&a[i]);
| ^
foo.c:8:29: note: each undeclared identifier is reported only once for each function it appears in
foo.c:12:25: error: '\U0000ff5b' undeclared (first use in this function)
12 | {
| ^~
foo.c:12:27: error: expected ';' before 'int'
12 | {
| ^
| ;
13 | int temp=a[j];
| ~~~
foo.c:16:18: error: '\U0000ff5d' undeclared (first use in this function)
16 | }
| ^~
foo.c:16:20: error: expected ';' before 'for'
16 | }
| ^
| ;
17 | for(int i=0;i<n;i++)
| ~~~
[Hydro](https://hydro.ac)提供评测服务