/in/foo.cc:1:1: error: 'include' does not name a type
include<iostream>
^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:8:1: error: 'string' was not declared in this scope
string n;
^~~~~~
/in/foo.cc:9:1: error: 'cin' was not declared in this scope
cin>>n;
^~~
/in/foo.cc:9:6: error: 'n' was not declared in this scope
cin>>n;
^
/in/foo.cc:12:1: error: 'cout' was not declared in this scope
cout<<"Right"<<endl;
^~~~
/in/foo.cc:12:16: error: 'endl' was not declared in this scope
cout<<"Right"<<endl;
^~~~
/in/foo.cc:14:1: error: 'cout' was not declared in this scope
cout<<"Right"<<endl;
^~~~
/in/foo.cc:14:16: error: 'endl' was not declared in this scope
cout<<"Right"<<endl;
^~~~
/in/foo.cc:18:1: error: 'cout' was not declared in this scope
cout<<n[i];
^~~~
/in/foo.cc:19:1: error: 'cout' was not declared in this scope
cout<<r;
^~~~
/in/foo.cc:24:1: error: 'cout' was not declared in this scope
cout<<n[i];
^~~~
/in/foo.cc:25:1: error: 'cout' was not declared in this scope
cout<<"X";
^~~~