foo.cpp:1:1: error: 'include' does not name a type
include<iostream>
^
foo.cpp: In function 'int main()':
foo.cpp:14:2: error: 'string' was not declared in this scope
string s;
^
foo.cpp:14:9: error: expected ';' before 's'
string s;
^
foo.cpp:15:2: error: 'cin' was not declared in this scope
cin>>n>>s;
^
foo.cpp:15:10: error: 's' was not declared in this scope
cin>>n>>s;
^
foo.cpp:21:3: error: 'cout' was not declared in this scope
cout<<"STEP=0";
^
foo.cpp:40:4: error: 'cout' was not declared in this scope
cout<<"STEP="<<c;
^
foo.cpp:44:2: error: 'cout' was not declared in this scope
cout<<"Impossible!"<<endl;
^
foo.cpp:44:23: error: 'endl' was not declared in this scope
cout<<"Impossible!"<<endl;
^