fork(2) download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int i = 0;
  6. std::cout << ++i++ << std::endl;
  7. std::cout << i << std::endl;
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:6:18: error: lvalue required as increment operand
  std::cout << ++i++ << std::endl;
                  ^
stdout
Standard output is empty