#include <iostream>
void foo( void );
class Test
{
public:
static int a;
};
int Test::a = 0; //initializing
int main()
{
std::cout << Test::a << std::endl;
Test::a = 10;
std::cout << Test::a << std::endl;
foo();
std::cout << Test::a << std::endl;
return 0;
}
void foo( void )
{
Test::a = 100;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdm9pZCBmb28oIHZvaWQgKTsKCmNsYXNzIFRlc3QKewogICAgcHVibGljOgogICAgICAgIHN0YXRpYyBpbnQgYTsKfTsKCmludCBUZXN0OjphID0gMDsgLy9pbml0aWFsaXppbmcKCmludCBtYWluKCkKewogICAgc3RkOjpjb3V0IDw8IFRlc3Q6OmEgPDwgc3RkOjplbmRsOwoKCVRlc3Q6OmEgPSAxMDsKCXN0ZDo6Y291dCA8PCBUZXN0OjphIDw8IHN0ZDo6ZW5kbDsKCQogICAgZm9vKCk7CiAgICBzdGQ6OmNvdXQgPDwgVGVzdDo6YSA8PCBzdGQ6OmVuZGw7CgogICAgcmV0dXJuIDA7Cn0KCnZvaWQgZm9vKCB2b2lkICkKewogICAgVGVzdDo6YSA9IDEwMDsKfQ==