fork(13) download
  1. #include <iostream>
  2. #include <limits>
  3. using namespace std;
  4.  
  5. int main() {
  6. double test;
  7. volatile int test_int;
  8. for(int i=0; i< std::numeric_limits<int>::max(); i++) {
  9. test = i;
  10. test_int = test;
  11. if (test_int != i)
  12. std::cout<<"found integer i="<<i<<", test="<<test<<std::endl;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0.85s 15240KB
stdin
Standard input is empty
stdout
Standard output is empty