Main.cc: In function 'int main()':
Main.cc:5:2: error: 'cin' was not declared in this scope
cin>>a,q;
^
Main.cc:6:15: error: 's' was not declared in this scope
int n=strlen(s);
^
Main.cc:6:16: error: 'strlen' was not declared in this scope
int n=strlen(s);
^
Main.cc:8:2: error: 'cout' was not declared in this scope
cout<