Main.cc: In function ‘int main()’: Main.cc:6:11: error: ‘ab’ was not declared in this scope cin>>sa>>ab; ^~ Main.cc:6:11: note: suggested alternative: ‘b’ cin>>sa>>ab; ^~ b