실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘Long MaxSqrDistance(const std::vector<Star*>&, int)’: Main.cpp:44:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Star*>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 44 | for (int i = 0; i < stars.size(); i++) { | ~~^~~~~~~~~~~~~~ Main.cpp:54:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Vector2>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 54 | for (int i = 0; i < currentStars.size(); i++) { | ~~^~~~~~~~~~~~~~~~~~~~~ Main.cpp:87:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Vector2>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 87 | for (int i = 2; i < currentStars.size(); i++) { | ~~^~~~~~~~~~~~~~~~~~~~~ Main.cpp:98:46: error: ordered comparison of pointer with integer zero (‘Long (*)(const Vector2&, const Vector2&, const Vector2&)’ {aka ‘long long int (*)(const Vector2&, const Vector2&, const Vector2&)’} and ‘int’) 98 | if (CounterClockWise > 0) break; | ~~~~~~~~~~~~~~~~~^~~ Main.cpp:92:30: warning: unused variable ‘counterClockWise’ [-Wunused-variable] 92 | Long counterClockWise = CounterClockWise( | ^~~~~~~~~~~~~~~~ Main.cpp:114:49: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Vector2>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 114 | for (int caliperFloor = 0; caliperFloor < convexHull.size(); caliperFloor++) { | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.