실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void dijkstra(std::vector<std::pair<int, int> >*, int*, int, int)’: Main.cpp:19:13: warning: unused variable ‘weight’ [-Wunused-variable] 19 | int weight = q.top().first; | ^~~~~~ Main.cpp: In function ‘int main()’: Main.cpp:53:27: error: request for member ‘size’ in ‘path[end]’, which is of non-class type ‘int’ 53 | for(int i = path[end].size()-cities[end]; i<path[end].size(); i++){ | ^~~~ Main.cpp:53:59: error: request for member ‘size’ in ‘path[end]’, which is of non-class type ‘int’ 53 | for(int i = path[end].size()-cities[end]; i<path[end].size(); i++){ | ^~~~ Main.cpp:54:24: error: invalid types ‘int[int]’ for array subscript 54 | cout<<path[end][i]<<" "; | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.