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