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