/in/foo.cc: In function 'int main()':
/in/foo.cc:8:2: error: 'cin' was not declared in this scope
cin>>n;
^~~
/in/foo.cc:13:3: error: 'cout' was not declared in this scope
cout<<*;
^~~~
/in/foo.cc:13:10: error: expected primary-expression before ';' token
cout<<*;
^
/in/foo.cc:21:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(i[mip] = o)
~~~~~~~^~~
/in/foo.cc:30:2: error: 'cout' was not declared in this scope
cout<<sum<<endl;
^~~~
/in/foo.cc:30:2: note: suggested alternative: 'rout'
cout<<sum<<endl;
^~~~
rout
/in/foo.cc:30:13: error: 'endl' was not declared in this scope
cout<<sum<<endl;
^~~~
/in/foo.cc:30:13: note: suggested alternative: 'enum'
cout<<sum<<endl;
^~~~
enum