In function 'int main()':
14:9: error: 'int MyClass::y' is private within this context
14 | myObj.y = 50; // 不允许 (y 是私有的)
| ^
8:9: note: declared private here
8 | int y; // 私有属性
| ^