foo.cc: In function ‘int main()’:
foo.cc:36:27: error: ‘int Vector3::x’ is private within this context
36 | cin >> v1.x >> v1.y >> v1.z;
| ^
foo.cc:7:13: note: declared private here
7 | int x, y, z;
| ^
foo.cc:36:35: error: ‘int Vector3::y’ is private within this context
36 | cin >> v1.x >> v1.y >> v1.z;
| ^
foo.cc:7:16: note: declared private here
7 | int x, y, z;
| ^
foo.cc:36:43: error: ‘int Vector3::z’ is private within this context
36 | cin >> v1.x >> v1.y >> v1.z;
| ^
foo.cc:7:19: note: declared private here
7 | int x, y, z;
| ^
foo.cc:37:27: error: ‘int Vector3::x’ is private within this context
37 | cin >> v2.x >> v2.y >> v2.z;
| ^
foo.cc:7:13: note: declared private here
7 | int x, y, z;
| ^
foo.cc:37:35: error: ‘int Vector3::y’ is private within this context
37 | cin >> v2.x >> v2.y >> v2.z;
| ^
foo.cc:7:16: note: declared private here
7 | int x, y, z;
| ^
foo.cc:37:43: error: ‘int Vector3::z’ is private within this context
37 | cin >> v2.x >> v2.y >> v2.z;
| ^
foo.cc:7:19: note: declared private here
7 | int x, y, z;
| ^
foo.cc:38:27: error: ‘int Vector3::x’ is private within this context
38 | cin >> v3.x >> v3.y >> v3.z;
| ^
foo.cc:7:13: note: declared private here
7 | int x, y, z;
| ^
foo.cc:38:35: error: ‘int Vector3::y’ is private within this context
38 | cin >> v3.x >> v3.y >> v3.z;
| ^
foo.cc:7:16: note: declared private here
7 | int x, y, z;
| ^
foo.cc:38:43: error: ‘int Vector3::z’ is private within this context
38 | cin >> v3.x >> v3.y >> v3.z;
| ^
foo.cc:7:19: note: declared private here
7 | int x, y, z;
| ^