#include <iostream>
int main()
{
int sum = 0;
for( int i = 0; i < 10; ++i )
sum += i;
std::cout << "sum: " << sum << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CglpbnQgc3VtID0gMDsKCglmb3IoIGludCBpID0gMDsgaSA8IDEwOyArK2kgKQoJCXN1bSArPSBpOwoKCXN0ZDo6Y291dCA8PCAic3VtOiAiIDw8IHN1bSA8PCBzdGQ6OmVuZGw7CglyZXR1cm4gMDsKfQ==