#include <iostream>
struct Base {
static void print() {
std::cout << member << std::endl;
}
protected:
static int member;
};
int Base::member = 0;
int main() {
using namespace std;
struct Derived : public Base
{
using Base::member;
};
int * pm = &Derived::member;
*pm = 99;
Base::print();
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RydWN0IEJhc2UgewoKICAgIHN0YXRpYyB2b2lkIHByaW50KCkgewogICAgICAgIHN0ZDo6Y291dCA8PCBtZW1iZXIgPDwgc3RkOjplbmRsOwogICAgfQoKcHJvdGVjdGVkOgogICAgc3RhdGljIGludCBtZW1iZXI7Cn07CgppbnQgQmFzZTo6bWVtYmVyID0gMDsKCmludCBtYWluKCkgewoKICAgIHVzaW5nIG5hbWVzcGFjZSBzdGQ7CgogICAgc3RydWN0IERlcml2ZWQgOiBwdWJsaWMgQmFzZQogICAgewogICAgICAgIHVzaW5nIEJhc2U6Om1lbWJlcjsKICAgIH07CiAgICAKICAgIGludCAqIHBtID0gJkRlcml2ZWQ6Om1lbWJlcjsKICAgICpwbSA9IDk5OwoKICAgIEJhc2U6OnByaW50KCk7Cn0=