QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#362301#8513. Insects, Mathematics, Accuracy, and Efficiencyucup-team1005#Compile Error//C++205.4kb2024-03-23 14:57:422024-03-23 14:57:43

Details

answer.code: In function ‘std::pair<point, point> line_circle_inter(const line&, const circle&)’:
answer.code:65:33: error: invalid operands of types ‘void’ and ‘int’ to binary ‘operator>=’
   65 | assert (sgn(sqr(c.r) - sqr(d))) >= 0);
      |                                 ^~ ~
      |                                    |
      |                                    int
answer.code: In function ‘void work()’:
answer.code:146:30: warning: narrowing conversion of ‘x’ from ‘int’ to ‘LD’ {aka ‘__float128’} [-Wnarrowing]
  146 |                 a.push_back({x, y});
      |                              ^
answer.code:146:33: warning: narrowing conversion of ‘y’ from ‘int’ to ‘LD’ {aka ‘__float128’} [-Wnarrowing]
  146 |                 a.push_back({x, y});
      |                                 ^