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