Main.cc: In function 'int main()': Main.cc:12:29: error: 'n' was not declared in this scope if(a+b+c*3==n&&5*a+3*b+c==n) ^