실행 실패 (제출 코드 컴파일 에러)
Main.cpp:6:1: error: ‘unordered_map’ does not name a type 6 | unordered_map<int, array<int, 2>> map; | ^~~~~~~~~~~~~ Main.cpp: In function ‘void recurs(int)’: Main.cpp:10:25: error: ‘map’ was not declared in this scope 10 | array<int, 2> arr = map[node]; | ^~~ Main.cpp:3:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’? 2 | #include <array> +++ |+#include <map> 3 | Main.cpp: In function ‘int main(int, char**)’: Main.cpp:23:5: error: ‘unordered_map’ was not declared in this scope 23 | unordered_map<int, int> parents; | ^~~~~~~~~~~~~ Main.cpp:3:1: note: ‘std::unordered_map’ is defined in header ‘<unordered_map>’; did you forget to ‘#include <unordered_map>’? 2 | #include <array> +++ |+#include <unordered_map> 3 | Main.cpp:23:19: error: expected primary-expression before ‘int’ 23 | unordered_map<int, int> parents; | ^~~ Main.cpp:28:9: error: ‘map’ was not declared in this scope 28 | map[n] = {0, 0}; | ^~~ Main.cpp:28:9: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’? Main.cpp:33:17: error: ‘parents’ was not declared in this scope 33 | parents[n] = prev; | ^~~~~~~ Main.cpp:38:24: error: ‘parents’ was not declared in this scope; did you mean ‘parent’? 38 | while (parents[parent] < n) { | ^~~~~~~ | parent Main.cpp:43:17: error: ‘parents’ was not declared in this scope; did you mean ‘parent’? 43 | parents[n] = parent; | ^~~~~~~ | parent Main.cpp:48:13: error: ‘parents’ was not declared in this scope 48 | parents[n] = INT_MAX; | ^~~~~~~ Main.cpp:48:26: error: ‘INT_MAX’ was not declared in this scope 48 | parents[n] = INT_MAX; | ^~~~~~~ Main.cpp:3:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’? 2 | #include <array> +++ |+#include <climits> 3 |
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.