#include <iostream>
#include <limits>
using namespace std;
int main() {
double test;
volatile int test_int;
for(int i=0; i< std::numeric_limits<int>::max(); i++) {
test = i;
test_int = test;
if (test_int != i)
std::cout<<"found integer i="<<i<<", test="<<test<<std::endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bGltaXRzPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglkb3VibGUgdGVzdDsKCXZvbGF0aWxlIGludCB0ZXN0X2ludDsKCWZvcihpbnQgaT0wOyBpPCBzdGQ6Om51bWVyaWNfbGltaXRzPGludD46Om1heCgpOyBpKyspIHsKCQl0ZXN0ID0gaTsKCQl0ZXN0X2ludCA9IHRlc3Q7CgkJaWYgKHRlc3RfaW50ICE9IGkpCgkJCXN0ZDo6Y291dDw8ImZvdW5kIGludGVnZXIgaT0iPDxpPDwiLCB0ZXN0PSI8PHRlc3Q8PHN0ZDo6ZW5kbDsKCX0KCXJldHVybiAwOwp9