Main.cc: In function 'int main()': Main.cc:6:6: error: 'a' was not declared in this scope cin>>a+1; ^ Main.cc:19:10: error: expected '}' at end of input return 0; ^