foo.c:3:17: error: parameter 'a' has just a forward declaration
3 | void Output(int a[];int n)
| ~~~~^~~
foo.c: In function 'Output':
foo.c:6:13: error: 'a' undeclared (first use in this function)
6 | printf("%d",a[i]);
| ^
foo.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
foo.c: In function 'main':
foo.c:16:8: warning: passing argument 1 of 'Output' makes integer from pointer without a cast [-Wint-conversion]
16 | Output(a,n);
| ^
| |
| int *
foo.c:3:25: note: expected 'int' but argument is of type 'int *'
3 | void Output(int a[];int n)
| ~~~~^
foo.c:16:1: error: too many arguments to function 'Output'
16 | Output(a,n);
| ^~~~~~
foo.c:3:6: note: declared here
3 | void Output(int a[];int n)
| ^~~~~~
[Hydro](https://hydro.ac)提供评测服务