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