int dostuff(){ return 1; } int main(){ dostuff() = 2;}
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:5: error: lvalue required as left operand of assignment
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!