foo.cc: In function 'int main()':
foo.cc:77:25: error: no match for 'operator*' (operand types are 'Vector3' and 'Matrix3')
77 | Vector3 result2 = v * m;
| ~ ^ ~
| | |
| | Matrix3
| Vector3
foo.cc:18:13: note: candidate: 'Vector3 Vector3::operator*(const int&) const'
18 | Vector3 operator*(const int& scalar) const {
| ^~~~~~~~
foo.cc:18:34: note: no known conversion for argument 1 from 'Matrix3' to 'const int&'
18 | Vector3 operator*(const int& scalar) const {
| ~~~~~~~~~~~^~~~~~
[Hydro](https://hydro.ac)提供评测服务