/in/foo.cc: In function 'void input(int*)':
/in/foo.cc:5:10: error: declaration of 'int a [10]' shadows a parameter
int a[10],n=10
^
/in/foo.cc:6:2: error: expected ',' or ';' before 'for'
for(int i=0;i<n;i++);
^~~
/in/foo.cc:6:14: error: 'i' was not declared in this scope
for(int i=0;i<n;i++);
^
/in/foo.cc:7:2: error: 'cout' was not declared in this scope
cout<<a[i]<<" ";
^~~~
/in/foo.cc:8:8: error: 'endl' was not declared in this scope
cout<<endl;
^~~~
/in/foo.cc: In function 'void output(int*)':
/in/foo.cc:13:2: error: 'cout' was not declared in this scope
cout<<a[i]<<" ";
^~~~
/in/foo.cc:13:10: error: 'i' was not declared in this scope
cout<<a[i]<<" ";
^
/in/foo.cc:14:8: error: 'endl' was not declared in this scope
cout<<endl;
^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:21:1: error: expected ';' before '}' token
}
^