Main.cc: In function ‘int main()’: Main.cc:5:14: error: expected ‘)’ before ‘;’ token while(cin>>a;){ ^ Main.cc:5:2: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] while(cin>>a;){ ^~~~~ Main.cc:5:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ while(cin>>a;){ ^ Main.cc:5:15: error: expected primary-expression before ‘)’ token