#include <iostream>
int main()
{
int val = 0;
const int Iterations = 10;
for( int i = 0; i < Iterations; ++i )
{
val += val + 1;
std::cout << "Val = " << val << std::endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CglpbnQgdmFsID0gMDsKCWNvbnN0IGludCBJdGVyYXRpb25zID0gMTA7Cglmb3IoIGludCBpID0gMDsgaSA8IEl0ZXJhdGlvbnM7ICsraSApCgl7CgkJdmFsICs9IHZhbCArIDE7CgkJc3RkOjpjb3V0IDw8ICJWYWwgPSAiIDw8ICB2YWwgPDwgc3RkOjplbmRsOwoJfQoJcmV0dXJuIDA7Cn0=