QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#710909#9576. Ordainer of Inexorable Judgmentucup-team5109Compile Error//C++233.6kb2024-11-04 23:02:022024-11-04 23:02:02

Details

answer.code: In member function ‘Point Point::operator+(const Point&) const’:
answer.code:29:64: error: could not convert ‘(((((double)((const Point*)this)->Point::x) + ((double)b.Point::x)) + ((double)((const Point*)this)->Point::y)) + ((double)b.Point::y))’ from ‘double’ to ‘Point’
   29 |     Point operator+(const Point &b) const { return x + b.x + y + b.y; }
      |                                                    ~~~~~~~~~~~~^~~~~
      |                                                                |
      |                                                                double