QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#658134#7906. Almost ConvexSoohtiCompile Error//C++172.9kb2024-10-19 16:13:472024-10-19 16:13:48

Details

answer.code: In function ‘double cos(Point, Point, Point)’:
answer.code:31:55: error: ‘sqrt’ was not declared in this scope
   31 |     return (dis(a, b) + dis(b, c) - dis(a, c)) / (2 * sqrt(dis(a, b)) * sqrt(dis(b, c)));
      |                                                       ^~~~