foo.cpp:1:1: error: 'include' does not name a type
include <iostream> include <cstdio> include <cstring> include <string>
^
foo.cpp:3:1: error: 'string' does not name a type
string s;
^
foo.cpp: In function 'int main()':
foo.cpp:6:22: error: 'scanf' was not declared in this scope
while(scanf("%c",&get) && get!='E'){
^
foo.cpp:8:1: error: 's' was not declared in this scope
s.push_back(get);
^
foo.cpp:11:15: error: 's' was not declared in this scope
for(int i=0;i<s.length();i++){
^
foo.cpp:16:31: error: 'printf' was not declared in this scope
printf("%d:%d\n",se,op);
^
foo.cpp:20:31: error: 'printf' was not declared in this scope
printf("%d:%d\n",se,op);
^
foo.cpp:25:23: error: 'printf' was not declared in this scope
printf("%d:%d\n",se,op);
^
foo.cpp:26:1: error: 'cout' was not declared in this scope
cout<<endl;
^
foo.cpp:26:7: error: 'endl' was not declared in this scope
cout<<endl;
^
foo.cpp:29:15: error: 's' was not declared in this scope
for(int i=0;i<s.length();i++){
^