fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i = 0;
  6. cout << i << endl << i++ << endl << ++i;
  7. return 0;
  8. }
Success #stdin #stdout 0s 5508KB
stdin
Standard input is empty
stdout
0
0
2