/in/foo.cc:5:1: error: expected unqualified-id before 'for'
for(i=0;i<n;i++){
^~~
/in/foo.cc:5:9: error: 'i' does not name a type
for(i=0;i<n;i++){
^
/in/foo.cc:5:13: error: 'i' does not name a type
for(i=0;i<n;i++){
^
/in/foo.cc:8:1: error: 'cin' does not name a type
cin>>n;
^~~
/in/foo.cc:9:1: error: expected unqualified-id before 'for'
for(i=0;i<n;i++){
^~~
/in/foo.cc:9:9: error: 'i' does not name a type
for(i=0;i<n;i++){
^
/in/foo.cc:9:13: error: 'i' does not name a type
for(i=0;i<n;i++){
^
/in/foo.cc:12:1: error: 'cout' does not name a type
cout<<c<<endl;
^~~~
/in/foo.cc:13:1: error: expected unqualified-id before 'return'
return 0;
^~~~~~
/in/foo.cc:14:1: error: expected declaration before '}' token
}
^