fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int i=0, a = 2;
  7. cout << i;
  8.  
  9. if (i++<a){
  10. cout << "yes" << endl;
  11. }
  12. cout << i;
  13.  
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5376KB
stdin
Standard input is empty
stdout
0yes
1