Main.cc: In function ‘int main()’: Main.cc:6:2: error: ‘com’ was not declared in this scope com>>n>>k; ^~~ Main.cc:6:2: note: suggested alternative: ‘cos’ com>>n>>k; ^~~ cos