foo.cc: In member function 'Vector3 Vector3::operator*(const Vector3&)':
foo.cc:23:11: error: no matching function for call to 'Vector3::Vector3()'
23 | Vector3 b;
| ^
foo.cc:15:2: note: candidate: 'Vector3::Vector3(int, int, int)'
15 | Vector3(int x1, int y1, int z1)
| ^~~~~~~
foo.cc:15:2: note: candidate expects 3 arguments, 0 provided
foo.cc:9:2: note: candidate: 'Vector3::Vector3(const Vector3&)'
9 | Vector3(const Vector3& V)
| ^~~~~~~
foo.cc:9:2: note: candidate expects 1 argument, 0 provided
foo.cc: In member function 'Vector3 Vector3::operator*(int)':
foo.cc:31:11: error: no matching function for call to 'Vector3::Vector3()'
31 | Vector3 b;
| ^
foo.cc:15:2: note: candidate: 'Vector3::Vector3(int, int, int)'
15 | Vector3(int x1, int y1, int z1)
| ^~~~~~~
foo.cc:15:2: note: candidate expects 3 arguments, 0 provided
foo.cc:9:2: note: candidate: 'Vector3::Vector3(const Vector3&)'
9 | Vector3(const Vector3& V)
| ^~~~~~~
foo.cc:9:2: note: candidate expects 1 argument, 0 provided
foo.cc: In member function 'Vector3 Vector3::operator+(const Vector3&)':
foo.cc:39:11: error: no matching function for call to 'Vector3::Vector3()'
39 | Vector3 b;
| ^
foo.cc:15:2: note: candidate: 'Vector3::Vector3(int, int, int)'
15 | Vector3(int x1, int y1, int z1)
| ^~~~~~~
foo.cc:15:2: note: candidate expects 3 arguments, 0 provided
foo.cc:9:2: note: candidate: 'Vector3::Vector3(const Vector3&)'
9 | Vector3(const Vector3& V)
| ^~~~~~~
foo.cc:9:2: note: candidate expects 1 argument, 0 provided
foo.cc: In member function 'Vector3 Vector3::operator-(const Vector3&)':
foo.cc:47:11: error: no matching function for call to 'Vector3::Vector3()'
47 | Vector3 b;
| ^
foo.cc:15:2: note: candidate: 'Vector3::Vector3(int, int, int)'
15 | Vector3(int x1, int y1, int z1)
| ^~~~~~~
foo.cc:15:2: note: candidate expects 3 arguments, 0 provided
foo.cc:9:2: note: candidate: 'Vector3::Vector3(const Vector3&)'
9 | Vector3(const Vector3& V)
| ^~~~~~~
foo.cc:9:2: note: candidate expects 1 argument, 0 provided
foo.cc: In member function 'Vector3& Vector3::operator=(const Vector3&)':
foo.cc:58:2: warning: no return statement in function returning non-void [-Wreturn-type]
57 | z=a.z;
+++ |+ return *this;
58 | }
| ^
[Hydro](https://hydro.ac)提供评测服务