Compile Error
/in/foo.cc:65:9: error: no declaration matches 'Vector3 Vector3::operator*(const Matrix3&) const'
65 | Vector3 Vector3::operator*(const Matrix3& matrix)const{
| ^~~~~~~
/in/foo.cc:9:13: note: candidate is: 'Vector3 Vector3::operator*(const Vector3&) const'
9 | Vector3 operator*(const Vector3& other)const{
| ^~~~~~~~
/in/foo.cc:4:7: note: 'class Vector3' defined here
4 | class Vector3{
| ^~~~~~~
信息
- 递交者
- 类型
- 自测
- 题目
- P1020 OO4-4 矩阵类与向量类的算术运算符重载
- 语言
- C++
- 递交时间
- 2025-03-29 20:50:41
- 评测时间
- 2025-03-29 20:50:41
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes