记录详情

Compile Error

foo.cc: In function 'std::istream& operator>>(std::istream&, Matrix&)':
foo.cc:11:22: error: 'i' was not declared in this scope; did you mean 'in'?
   11 |                 _for(i,0,mat.dim_x)
      |                      ^
      |                      in
foo.cc:11:17: error: '_for' was not declared in this scope
   11 |                 _for(i,0,mat.dim_x)
      |                 ^~~~
foo.cc: In member function 'Matrix Matrix::operator*(const Matrix&) const':
foo.cc:29:30: error: 'i' was not declared in this scope
   29 |                         _for(i,0,dim_x)
      |                              ^
foo.cc:29:25: error: '_for' was not declared in this scope
   29 |                         _for(i,0,dim_x)
      |                         ^~~~
foo.cc: In member function 'Matrix Matrix::transpose()':
foo.cc:43:22: error: 'i' was not declared in this scope
   43 |                 _for(i,0,dim_x)
      |                      ^
foo.cc:43:17: error: '_for' was not declared in this scope
   43 |                 _for(i,0,dim_x)
      |                 ^~~~
foo.cc: In function 'std::ostream& operator<<(std::ostream&, const Matrix&)':
foo.cc:50:22: error: 'i' was not declared in this scope
   50 |                 _for(i,0,mat.dim_x)
      |                      ^
foo.cc:50:17: error: '_for' was not declared in this scope
   50 |                 _for(i,0,mat.dim_x)
      |                 ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1020 OO4-4 矩阵类与向量类的算术运算符重载
语言
C++
递交时间
2022-05-16 18:03:34
评测时间
2022-05-16 18:03:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes