/in/foo.c:9:6: error: conflicting types for 'Output'
void Output(int b[])
^~~~~~
/in/foo.c:3:6: note: previous definition of 'Output' was here
void Output(int a[], int n)
^~~~~~
/in/foo.c: In function 'Output':
/in/foo.c:11:17: error: 'n' undeclared (first use in this function)
for(int i=0; i<n; i++)
^
/in/foo.c:11:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c: In function 'main':
/in/foo.c:20:2: error: 'b' undeclared (first use in this function)
b[]={5}, n=8;
^
/in/foo.c:20:4: error: expected expression before ']' token
b[]={5}, n=8;
^
/in/foo.c:21:2: error: too many arguments to function 'Output'
Output(a, n);
^~~~~~
/in/foo.c:9:6: note: declared here
void Output(int b[])
^~~~~~
/in/foo.c:22:2: error: too many arguments to function 'Output'
Output(b, n);
^~~~~~
/in/foo.c:9:6: note: declared here
void Output(int b[])
^~~~~~
/in/foo.c:18:6: warning: unused variable 'i' [-Wunused-variable]
int i,
^