记录详情

Compile Error

foo.cc: In member function 'void Vector3Array::Sort(int)':
foo.cc:70:14: error: no matching function for call to 'Vector3::Vector3()'
   70 |      Vector3 tmp;
      |              ^~~
foo.cc:14:2: note: candidate: 'Vector3::Vector3(int, int, int)'
   14 |  Vector3(int x1, int y1, int z1)
      |  ^~~~~~~
foo.cc:14:2: note:   candidate expects 3 arguments, 0 provided
foo.cc:8:2: note: candidate: 'Vector3::Vector3(const Vector3&)'
    8 |  Vector3(const Vector3& V)
      |  ^~~~~~~
foo.cc:8:2: note:   candidate expects 1 argument, 0 provided
foo.cc: In function 'int main()':
foo.cc:81:15: error: use of deleted function 'Vector3Array::Vector3Array()'
   81 |  Vector3Array A;
      |               ^
foo.cc:49:7: note: 'Vector3Array::Vector3Array()' is implicitly deleted because the default definition would be ill-formed:
   49 | class Vector3Array
      |       ^~~~~~~~~~~~
foo.cc:49:7: error: no matching function for call to 'Vector3::Vector3()'
foo.cc:14:2: note: candidate: 'Vector3::Vector3(int, int, int)'
   14 |  Vector3(int x1, int y1, int z1)
      |  ^~~~~~~
foo.cc:14:2: note:   candidate expects 3 arguments, 0 provided
foo.cc:8:2: note: candidate: 'Vector3::Vector3(const Vector3&)'
    8 |  Vector3(const Vector3& V)
      |  ^~~~~~~
foo.cc:8:2: note:   candidate expects 1 argument, 0 provided
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1018 OO4-2 向量的比较、赋值及向量集合类的排序
语言
C++
递交时间
2022-05-04 21:28:50
评测时间
2022-05-04 21:28:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes