실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp:5:20: error: \u2018array\u2019 was not declared in this scope\n 5 | unordered_map<int, array<int, 2>> map;\n | ^~~~~\nMain.cpp:2:1: note: \u2018std::array\u2019 is defined in header \u2018<array>\u2019; did you forget to \u2018#include <array>\u2019?\n 1 | #include <iostream>\n +++ |+#include <array>\n 2 | \nMain.cpp:5:20: error: \u2018array\u2019 was not declared in this scope\n 5 | unordered_map<int, array<int, 2>> map;\n | ^~~~~\nMain.cpp:5:20: note: \u2018std::array\u2019 is defined in header \u2018<array>\u2019; did you forget to \u2018#include <array>\u2019?\nMain.cpp:5:20: error: \u2018array\u2019 was not declared in this scope\nMain.cpp:5:20: note: \u2018std::array\u2019 is defined in header \u2018<array>\u2019; did you forget to \u2018#include <array>\u2019?\nMain.cpp:5:20: error: \u2018array\u2019 was not declared in this scope\nMain.cpp:5:20: note: \u2018std::array\u2019 is defined in header \u2018<array>\u2019; did you forget to \u2018#include <array>\u2019?\nMain.cpp:5:20: error: \u2018array\u2019 was not declared in this scope\nMain.cpp:5:20: note: \u2018std::array\u2019 is defined in header \u2018<array>\u2019; did you forget to \u2018#include <array>\u2019?\nMain.cpp:5:20: error: \u2018array\u2019 was not declared in this scope\nMain.cpp:5:20: note: \u2018std::array\u2019 is defined in header \u2018<array>\u2019; did you forget to \u2018#include <array>\u2019?\nMain.cpp:5:20: error: \u2018array\u2019 was not declared in this scope\nMain.cpp:5:20: note: \u2018std::array\u2019 is defined in header \u2018<array>\u2019; did you forget to \u2018#include <array>\u2019?\nMain.cpp:5:20: error: \u2018array\u2019 was not declared in this scope\nMain.cpp:5:20: note: \u2018std::array\u2019 is defined in header \u2018<array>\u2019; did you forget to \u2018#include <array>\u2019?\nMain.cpp:5:20: error: \u2018array\u2019 was not declared in this scope\nMain.cpp:5:20: note: \u2018std::array\u2019 is defined in header \u2018<array>\u2019; did you forget to \u2018#include <array>\u2019?\nMain.cpp:5:1: error: \u2018unordered_map\u2019 does not name a type\n 5 | unordered_map<int, array<int, 2>> map;\n | ^~~~~~~~~~~~~\nMain.cpp: In function \u2018void recurs(int)\u2019:\nMain.cpp:9:5: error: \u2018array\u2019 was not declared in this scope\n 9 | array<int, 2> arr = map[node];\n | ^~~~~\nMain.cpp:9:5: note: \u2018std::array\u2019 is defined in header \u2018<array>\u2019; did you forget to \u2018#include <array>\u2019?\nMain.cpp:9:11: error: expected primary-expression before \u2018int\u2019\n 9 | array<int, 2> arr = map[node];\n | ^~~\nMain.cpp:11:12: error: \u2018arr\u2019 was not declared in this scope\n 11 | recurs(arr[0]);\n | ^~~\nMain.cpp: In function \u2018int main(int, char**)\u2019:\nMain.cpp:22:5: error: \u2018unordered_map\u2019 was not declared in this scope\n 22 | unordered_map<int, int> parents;\n | ^~~~~~~~~~~~~\nMain.cpp:2:1: note: \u2018std::unordered_map\u2019 is defined in header \u2018<unordered_map>\u2019; did you forget to \u2018#include <unordered_map>\u2019?\n 1 | #include <iostream>\n +++ |+#include <unordered_map>\n 2 | \nMain.cpp:22:19: error: expected primary-expression before \u2018int\u2019\n 22 | unordered_map<int, int> parents;\n | ^~~\nMain.cpp:27:9: error: \u2018map\u2019 was not declared in this scope\n 27 | map[n] = {0, 0};\n | ^~~\nMain.cpp:2:1: note: \u2018std::map\u2019 is defined in header \u2018<map>\u2019; did you forget to \u2018#include <map>\u2019?\n 1 | #include <iostream>\n +++ |+#include <map>\n 2 | \nMain.cpp:32:17: error: \u2018parents\u2019 was not declared in this scope\n 32 | parents[n] = prev;\n | ^~~~~~~\nMain.cpp:37:24: error: \u2018parents\u2019 was not declared in this scope; did you mean \u2018parent\u2019(...truncated, total 4869 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.