记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:86:14: error: 'int Vector3::x' is private within this context
   86 |     cin >> v.x >> v.y >> v.z;
      |              ^
/in/foo.cc:7:9: note: declared private here
    7 |     int x, y, z;
      |         ^
/in/foo.cc:86:21: error: 'int Vector3::y' is private within this context
   86 |     cin >> v.x >> v.y >> v.z;
      |                     ^
/in/foo.cc:7:12: note: declared private here
    7 |     int x, y, z;
      |            ^
/in/foo.cc:86:28: error: 'int Vector3::z' is private within this context
   86 |     cin >> v.x >> v.y >> v.z;
      |                            ^
/in/foo.cc:7:15: note: declared private here
    7 |     int x, y, z;
      |               ^
/in/foo.cc:89:22: error: 'int Matrix3::v [3][3]' is private within this context
   89 |             cin >> m.v[i][j];
      |                      ^
/in/foo.cc:27:9: note: declared private here
   27 |     int v[3][3];
      |         ^

信息

递交者
类型
自测
题目
P1020 OO4-4 矩阵类与向量类的算术运算符重载
语言
C++
递交时间
2025-03-29 21:20:13
评测时间
2025-03-29 21:20:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes