Main.cc: In function ‘int main()’:
Main.cc:5:2: error: ‘cin’ was not declared in this scope
cin>>n>>m;
^~~
Main.cc:5:2: note: suggested alternative: ‘main’
cin>>n>>m;
^~~
main
Main.cc:8:11: error: ‘cout’ was not declared in this scope
case 8: cout<<"7"; break;
^~~~
Main.cc:18:3: error: ‘cout’ was not declared in this scope
cout<<623;
^~~~
Main.cc:21:3: error: ‘cout’ was not declared in this scope
cout<<27893;
^~~~