Main.cc: In function ‘int main()’: Main.cc:9:22: error: lvalue required as left operand of assignment if (a = 1 && b = 1) cout << 1; ^