Main.cc: In function 'int main()': Main.cc:11:13: error: 'x' was not declared in this scope if((x*(m-x))==n){ ^