Main.cc: In function 'int main()': Main.cc:9:7: error: 'x' was not declared in this scope if(x+y==m&&x*y==n){ ^ Main.cc:9:9: error: 'y' was not declared in this scope if(x+y==m&&x*y==n){ ^