fork(1) download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. short i = 0;
  6. do
  7. {
  8. if (i + (short) 1 < (short) 0)
  9. std::cout << "MAX: " << i << std::endl;
  10. i++;
  11. } while (i > 0);
  12. std::cout << "MIN: " << i << std::endl;
  13. return 0;
  14. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
MIN: -32768