QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#605252#9227. Henry the Plumberucup-team5022#Compile Error//C++141.7kb2024-10-02 16:24:082024-10-02 16:24:09

Details

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