Main.cc: In function 'int main()': Main.cc:10:14: error: 'x' was not declared in this scope cin>>x; ^