#include <iostream>
using namespace std;

struct A { protected: int x; };

struct B : A { using A::x; };

int main() {
	B b;
	
	b.x = 1;
	return 0;
}