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