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:9:3: error: 'cout' was not declared in this scope
cout<<"yes";
^
Main.cc:11:3: error: 'cout' was not declared in this scope
cout<<"no";
^