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: '\U0000ff5bint' undeclared (first use in this function)
12 | {int temp=a[j];
| ^~~~~
foo.c:12:30: error: expected ';' before 'temp'
12 | {int temp=a[j];
| ^~~~~
| ;
foo.c:14:45: error: '\U0000ff5d' undeclared (first use in this function)
14 | a[j+1]=temp;}
| ^~
foo.c:14:47: error: expected ';' before 'for'
14 | a[j+1]=temp;}
| ^
| ;
15 | for(int i=0;i<n;i++)
| ~~~
[Hydro](https://hydro.ac)提供评测服务