실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void daijkstra(city*, city*, std::vector<int>&, std::vector<int>&)’: Main.cpp:24:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, city*> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 24 | for (int i = 0; i < start->child_list.size(); i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ Main.cpp:28:75: error: expected ‘)’ before ‘;’ token 28 | distance[idx] = min(distance[idx], -start->child_list[i].first;); | ~ ^ | ) Main.cpp:28:76: error: expected primary-expression before ‘)’ token 28 | distance[idx] = min(distance[idx], -start->child_list[i].first;); | ^ Main.cpp:52:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, city*> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 52 | for (int i = 0; i < cur.second->child_list.size(); i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.