실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void dijkstra(Graph&, std::vector<int>&, int, int*)’: Main.cpp:116:14: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 116 | if(v == G.Vertex.size() - 1 && temp != 2){ | ~~^~~~~~~~~~~~~~~~~~~~~~ Main.cpp: In function ‘int main(int, char**)’: Main.cpp:32:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 32 | scanf("%d %d", &vertexCount, &edgeCount); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Main.cpp:42:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 42 | scanf("%d %d %d", &vertex[0], &vertex[1], &w); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Main.cpp:55:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 55 | scanf("%d %d", &pVertex[0], &pVertex[1]); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Main.cpp: At global scope: Main.cpp:158:1: fatal error: error writing to /tmp/ccgfyWDi.s: No space left on device 158 | } | ^ compilation terminated.
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.