/in/foo.cc: In function 'int main()':
/in/foo.cc:6:2: error: 'cin' was not declared in this scope
cin>>n;
^~~
/in/foo.cc:8:21: error: expected ')' before ';' token
for(int i=0;i<n;i++;)
^
/in/foo.cc:8:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<n;i++;)
^~~
/in/foo.cc:8:22: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i=0;i<n;i++;)
^
/in/foo.cc:8:22: error: expected primary-expression before ')' token
/in/foo.cc:11:3: error: 'cout' was not declared in this scope
cout<<a[i];
^~~~