记录详情

Compile Error

/in/foo.cc:37:5: error: 'Vector3' does not name a type; did you mean 'Vector2'?
   37 |     Vector3 operator*(const int k)
      |     ^~~~~~~
      |     Vector2
/in/foo.cc:42:5: error: 'Vector3' does not name a type; did you mean 'Vector2'?
   42 |     Vector3 operator+(const Vector2& v)
      |     ^~~~~~~
      |     Vector2
/in/foo.cc:46:5: error: 'Vector3' does not name a type; did you mean 'Vector2'?
   46 |     Vector3 operator-(const Vector2& v)
      |     ^~~~~~~
      |     Vector2
/in/foo.cc: In member function 'Matrix3 Matrix3::operator*(const Matrix3&)':
/in/foo.cc:131:13: warning: unused variable 'matrix' [-Wunused-variable]
  131 |         int matrix[9];
      |             ^~~~~~

信息

递交者
类型
递交
题目
P1020 OO4-4 矩阵类与向量类的算术运算符重载
语言
C++
递交时间
2025-04-14 11:00:57
评测时间
2025-04-15 00:02:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes