Main.cc:3:5: error: cannot declare ‘::main’ to be a global variable int main{ ^~~~ Main.cc:4:5: error: expected primary-expression before ‘int’ int a; ^~~ Main.cc:4:5: error: expected ‘}’ before ‘int’ Main.cc:5:5: error: ‘cin’ does not name a type; did you mean ‘main’? cin>>a; ^~~ main Main.cc:6:5: error: ‘cout’ does not name a type cout<