실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:27:17: error: no matching function for call to \u2018std::deque<std::tuple<int, int, int> >::push_back(<brace-enclosed initializer list>)\u2019\n 27 | dq.push_back({tx, ty, 0});\n | ~~~~~~~~~~~~^~~~~~~~~~~~~\nIn file included from /usr/include/c++/11/deque:67,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_deque.h:1496:7: note: candidate: \u2018void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; std::deque<_Tp, _Alloc>::value_type = std::tuple<int, int, int>]\u2019\n 1496 | push_back(const value_type& __x)\n | ^~~~~~~~~\n/usr/include/c++/11/bits/stl_deque.h:1496:35: 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 1496 | push_back(const value_type& __x)\n | ~~~~~~~~~~~~~~~~~~^~~\n/usr/include/c++/11/bits/stl_deque.h:1511:7: note: candidate: \u2018void std::deque<_Tp, _Alloc>::push_back(std::deque<_Tp, _Alloc>::value_type&&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; std::deque<_Tp, _Alloc>::value_type = std::tuple<int, int, int>]\u2019\n 1511 | push_back(value_type&& __x)\n | ^~~~~~~~~\n/usr/include/c++/11/bits/stl_deque.h:1511:30: note: no known conversion for argument 1 from \u2018<brace-enclosed initializer list>\u2019 to \u2018std::deque<std::tuple<int, int, int> >::value_type&&\u2019 {aka \u2018std::tuple<int, int, int>&&\u2019}\n 1511 | push_back(value_type&& __x)\n | ~~~~~~~~~~~~~^~~\nMain.cpp:34:9: error: \u2018tie\u2019 was not declared in this scope\n 34 | tie(px, py, pd) = dq.front();\n | ^~~\nMain.cpp:4:1: note: \u2018std::tie\u2019 is defined in header \u2018<tuple>\u2019; did you forget to \u2018#include <tuple>\u2019?\n 3 | #include <deque>\n +++ |+#include <tuple>\n 4 | using namespace std;\nMain.cpp:44:29: error: no matching function for call to \u2018std::deque<std::tuple<int, int, int> >::push_back(<brace-enclosed initializer list>)\u2019\n 44 | dq.push_back({nx, ny, pd + 1});\n | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~\nIn file included from /usr/include/c++/11/deque:67,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_deque.h:1496:7: note: candidate: \u2018void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; std::deque<_Tp, _Alloc>::value_type = std::tuple<int, int, int>]\u2019\n 1496 | push_back(const value_type& __x)\n | ^~~~~~~~~\n/usr/include/c++/11/bits/stl_deque.h:1496:35: 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 1496 | push_back(const value_type& __x)\n | ~~~~~~~~~~~~~~~~~~^~~\n/usr/include/c++/11/bits/stl_deque.h:1511:7: note: candidate: \u2018void std::deque<_Tp, _Alloc>::push_back(std::deque<_Tp, _Alloc>::value_type&&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; std::deque<_Tp, _Alloc>::value_type = std::tuple<int, int, int>]\u2019\n 1511 | push_back(value_type&& __x)\n | ^~~~~~~~~\n/usr/include/c++/11/bits/stl_deque.h:1511:30: note: no known conversion for argument 1 from \u2018<brace-enclosed initializer list>\u2019 to \u2018std::deque<std::tuple<int, int, int> >::value_type&&\u2019 {aka \u2018std::tuple<int, int, int>&&\u2019}\n 1511 | push_back(value_type&& __x)\n | ~~~~~~~~~~~~~^~~\n/usr/include/c++/11/bits/stl_deque.h: In instantiation of \u2018void std::deque<_Tp, _Alloc>::pop_front() [(...truncated, total 16761 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.