/in/foo.cc:2:5: error: 'cin' does not name a type
cin>>n;
^~~
/in/foo.cc:3:5: error: expected unqualified-id before 'for'
for(i=0;i<n;i++)
^~~
/in/foo.cc:3:13: error: 'i' does not name a type
for(i=0;i<n;i++)
^
/in/foo.cc:3:17: error: 'i' does not name a type
for(i=0;i<n;i++)
^
/in/foo.cc:10:5: error: expected unqualified-id before 'for'
for(i=0;i<n;i++)
^~~
/in/foo.cc:10:13: error: 'i' does not name a type
for(i=0;i<n;i++)
^
/in/foo.cc:10:17: error: 'i' does not name a type
for(i=0;i<n;i++)
^
/in/foo.cc:17:5: error: expected unqualified-id before 'for'
for(i=0;i<n;i++)
^~~
/in/foo.cc:17:13: error: 'i' does not name a type
for(i=0;i<n;i++)
^
/in/foo.cc:17:17: error: 'i' does not name a type
for(i=0;i<n;i++)
^
/in/foo.cc:21:5: error: 'cout' does not name a type
cout<<c;
^~~~
/in/foo.cc:22:5: error: expected unqualified-id before 'return'
return 0;
^~~~~~