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