Main.cc: In function 'int main()': Main.cc:10:3: error: 'd' was not declared in this scope d=y/x; ^ Main.cc:12:8: error: 'd' was not declared in this scope if(n<=d){ ^