foo.c: In function 'Output':
foo.c:5:20: error: expected ';' before '}' token
5 | printf("%d",a[i])
| ^
| ;
6 | }
| ~
foo.c: In function 'main':
foo.c:13:10: warning: passing argument 1 of 'Output' makes pointer from integer without a cast [-Wint-conversion]
13 | Output(a[9999],n);
| ~^~~~~~
| |
| int
foo.c:2:17: note: expected 'int *' but argument is of type 'int'
2 | void Output(int a[],int x)
| ~~~~^~~
foo.c:10:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
foo.c:12:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
12 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务