/in/foo.cc: In function 'void output(int*, int)':
/in/foo.cc:3:16: error: expected ';' before '<' token
for (int i=0,i<n,i++)
^
/in/foo.cc:3:16: error: expected primary-expression before '<' token
/in/foo.cc:3:22: error: expected ';' before ')' token
for (int i=0,i<n,i++)
^
/in/foo.cc:4:3: error: 'cout' was not declared in this scope
cout<<a[i]<<"";
^~~~
/in/foo.cc:5:2: error: 'cout' was not declared in this scope
cout<<endl;
^~~~
/in/foo.cc:5:8: error: 'endl' was not declared in this scope
cout<<endl;
^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:10:2: error: 'cin' was not declared in this scope
cin>>n;
^~~