실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void calculateDistance()’: Main.cpp:20:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 20 | for (int i = 0; i < houses.size(); i++) { | ~~^~~~~~~~~~~~~~~ Main.cpp:22:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 22 | for (int j = 0; j < chickens.size(); j++) { | ~~^~~~~~~~~~~~~~~~~ Main.cpp: In function ‘void DFS_selectChicken(int, int)’: Main.cpp:41:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 41 | for (int i = idx; i < chickens.size(); i++) { | ~~^~~~~~~~~~~~~~~~~ Main.cpp: In function ‘int main()’: Main.cpp:70:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 70 | for (int i = 0; i < houses.size(); i++) { | ~~^~~~~~~~~~~~~~~ Main.cpp:71:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 71 | for (int j = 0; j < chickens.size(); j++) { | ~~^~~~~~~~~~~~~~~~~ Main.cpp:72:44: error: request for member ‘push_back’ in ‘houseToChickens[i]’, which is of non-class type ‘int [13]’ 72 | houseToChickens[i].push_back(abs(houses[i].first - chickens[j].first) + abs(houses[i].second - chickens[j].second)); | ^~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.