Main.cc: In function ‘int main()’: Main.cc:8:22: error: ‘y’ was not declared in this scope if(a * x + b * y == c){ ^