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