실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘double CalcDistance(Pos&, Pos&)’: Main.cpp:42:16: error: ‘sqrt’ was not declared in this scope 42 | return sqrt((B.X - A.X) * (B.X - A.X) + (B.Y - A.Y) * (B.Y - A.Y)); | ^~~~ Main.cpp: In function ‘double CalcArea(const Triangle&)’: Main.cpp:53:16: error: ‘sqrt’ was not declared in this scope 53 | return sqrt(S * (S - Distance1) * (S - Distance2) * (S - Distance3)); | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.