실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:23:42: error: \u2018dp\u2019 was not declared in this scope; did you mean \u2018dy\u2019?\n 23 | for (int t = 0; t <= k; t++) dp[t][i][j] = 0;\n | ^~\n | dy\nMain.cpp:27:5: error: \u2018dp\u2019 was not declared in this scope; did you mean \u2018dy\u2019?\n 27 | dp[0][0][0] = 1;\n | ^~\n | dy\nMain.cpp:28:11: error: no matching function for call to \u2018std::queue<std::tuple<int, int, int> >::push(<brace-enclosed initializer list>)\u2019\n 28 | q.push({0, 0, 0});\n | ~~~~~~^~~~~~~~~~~\nIn file included from /usr/include/c++/11/queue:64,\n from Main.cpp:4:\n/usr/include/c++/11/bits/stl_queue.h:265:7: note: candidate: \u2018void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::tuple<int, int, int>; _Sequence = std::deque<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::tuple<int, int, int>]\u2019\n 265 | push(const value_type& __x)\n | ^~~~\n/usr/include/c++/11/bits/stl_queue.h:265:30: note: no known conversion for argument 1 from \u2018<brace-enclosed initializer list>\u2019 to \u2018const value_type&\u2019 {aka \u2018const std::tuple<int, int, int>&\u2019}\n 265 | push(const value_type& __x)\n | ~~~~~~~~~~~~~~~~~~^~~\n/usr/include/c++/11/bits/stl_queue.h:270:7: note: candidate: \u2018void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::tuple<int, int, int>; _Sequence = std::deque<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::tuple<int, int, int>]\u2019\n 270 | push(value_type&& __x)\n | ^~~~\n/usr/include/c++/11/bits/stl_queue.h:270:25: note: no known conversion for argument 1 from \u2018<brace-enclosed initializer list>\u2019 to \u2018std::queue<std::tuple<int, int, int> >::value_type&&\u2019 {aka \u2018std::tuple<int, int, int>&&\u2019}\n 270 | push(value_type&& __x)\n | ~~~~~~~~~~~~~^~~\nMain.cpp:32:9: error: \u2018tie\u2019 was not declared in this scope\n 32 | tie(x, y, break_cnt) = q.front();\n | ^~~\nMain.cpp:5:1: note: \u2018std::tie\u2019 is defined in header \u2018<tuple>\u2019; did you forget to \u2018#include <tuple>\u2019?\n 4 | #include <queue>\n +++ |+#include <tuple>\n 5 | using namespace std;\nMain.cpp:48:23: error: no matching function for call to \u2018std::queue<std::tuple<int, int, int> >::push(<brace-enclosed initializer list>)\u2019\n 48 | q.push({nx, ny, break_cnt});\n | ~~~~~~^~~~~~~~~~~~~~~~~~~~~\nIn file included from /usr/include/c++/11/queue:64,\n from Main.cpp:4:\n/usr/include/c++/11/bits/stl_queue.h:265:7: note: candidate: \u2018void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::tuple<int, int, int>; _Sequence = std::deque<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::tuple<int, int, int>]\u2019\n 265 | push(const value_type& __x)\n | ^~~~\n/usr/include/c++/11/bits/stl_queue.h:265:30: note: no known conversion for argument 1 from \u2018<brace-enclosed initializer list>\u2019 to \u2018const value_type&\u2019 {aka \u2018const std::tuple<int, int, int>&\u2019}\n 265 | push(const value_type& __x)\n | ~~~~~~~~~~~~~~~~~~^~~\n/usr/include/c++/11/bits/stl_queue.h:270:7: note: candidate: \u2018void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::tuple<int, int, int>; _Sequence = std::deque<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::tuple<int, int, int>]\u(...truncated, total 21393 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.