QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#605252 | #9227. Henry the Plumber | ucup-team5022# | Compile Error | / | / | C++14 | 1.7kb | 2024-10-02 16:24:08 | 2024-10-02 16:24:09 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In member function ‘Vec Vec::operator+(const Vec&) const’: answer.code:8:53: error: no matching function for call to ‘Vec::Vec(int, int, int)’ 8 | return Vec(a + v.a, b + v.b, c + v.c); | ^ answer.code:5:8: note: candidate: ‘Vec::Vec()’ 5 | struct Vec { | ^~~ answer.code:5:8: note: candidate expects 0 arguments, 3 provided answer.code:5:8: note: candidate: ‘constexpr Vec::Vec(const Vec&)’ answer.code:5:8: note: candidate expects 1 argument, 3 provided answer.code:5:8: note: candidate: ‘constexpr Vec::Vec(Vec&&)’ answer.code:5:8: note: candidate expects 1 argument, 3 provided answer.code: In member function ‘Vec Vec::operator-(const Vec&) const’: answer.code:11:53: error: no matching function for call to ‘Vec::Vec(int, int, int)’ 11 | return Vec(a - v.a, b - v.b, c - v.c); | ^ answer.code:5:8: note: candidate: ‘Vec::Vec()’ 5 | struct Vec { | ^~~ answer.code:5:8: note: candidate expects 0 arguments, 3 provided answer.code:5:8: note: candidate: ‘constexpr Vec::Vec(const Vec&)’ answer.code:5:8: note: candidate expects 1 argument, 3 provided answer.code:5:8: note: candidate: ‘constexpr Vec::Vec(Vec&&)’ answer.code:5:8: note: candidate expects 1 argument, 3 provided answer.code: In member function ‘Vec Vec::operator^(const Vec&) const’: answer.code:14:83: error: no matching function for call to ‘Vec::Vec(int, int, int)’ 14 | return Vec(b * v.c - c * v.b, c * v.a - a * v.c, a * v.b - b * v.a); | ^ answer.code:5:8: note: candidate: ‘Vec::Vec()’ 5 | struct Vec { | ^~~ answer.code:5:8: note: candidate expects 0 arguments, 3 provided answer.code:5:8: note: candidate: ‘constexpr Vec::Vec(const Vec&)’ answer.code:5:8: note: candidate expects 1 argument, 3 provided answer.code:5:8: note: candidate: ‘constexpr Vec::Vec(Vec&&)’ answer.code:5:8: note: candidate expects 1 argument, 3 provided