#include <iostream> using namespace std; int main() { int a = 0, b = 1, c = 2, d = 3; a = b + c = 3; cout << a; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:6:14: error: lvalue required as left operand of assignment a = b + c = 3; ^
Standard output is empty