실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:6:11: error: class template argument deduction failed:\n 6 | queue q;\n | ^\nMain.cpp:6:11: error: no matching function for call to \u2018queue()\u2019\nIn file included from /usr/include/c++/11/queue:64,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_queue.h:195:9: note: candidate: \u2018template<class _Tp, class _Sequence, class _Alloc, class _Requires> queue(std::queue<_Tp, _Seq>&&, const _Alloc&)-> std::queue<_Tp, _Sequence>\u2019\n 195 | queue(queue&& __q, const _Alloc& __a)\n | ^~~~~\n/usr/include/c++/11/bits/stl_queue.h:195:9: note: template argument deduction/substitution failed:\nMain.cpp:6:11: note: candidate expects 2 arguments, 0 provided\n 6 | queue q;\n | ^\nIn file included from /usr/include/c++/11/queue:64,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_queue.h:191:9: note: candidate: \u2018template<class _Tp, class _Sequence, class _Alloc, class _Requires> queue(const std::queue<_Tp, _Seq>&, const _Alloc&)-> std::queue<_Tp, _Sequence>\u2019\n 191 | queue(const queue& __q, const _Alloc& __a)\n | ^~~~~\n/usr/include/c++/11/bits/stl_queue.h:191:9: note: template argument deduction/substitution failed:\nMain.cpp:6:11: note: candidate expects 2 arguments, 0 provided\n 6 | queue q;\n | ^\nIn file included from /usr/include/c++/11/queue:64,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_queue.h:187:9: note: candidate: \u2018template<class _Tp, class _Sequence, class _Alloc, class _Requires> queue(_Sequence&&, const _Alloc&)-> std::queue<_Tp, _Sequence>\u2019\n 187 | queue(_Sequence&& __c, const _Alloc& __a)\n | ^~~~~\n/usr/include/c++/11/bits/stl_queue.h:187:9: note: template argument deduction/substitution failed:\nMain.cpp:6:11: note: candidate expects 2 arguments, 0 provided\n 6 | queue q;\n | ^\nIn file included from /usr/include/c++/11/queue:64,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_queue.h:183:9: note: candidate: \u2018template<class _Tp, class _Sequence, class _Alloc, class _Requires> queue(const _Sequence&, const _Alloc&)-> std::queue<_Tp, _Sequence>\u2019\n 183 | queue(const _Sequence& __c, const _Alloc& __a)\n | ^~~~~\n/usr/include/c++/11/bits/stl_queue.h:183:9: note: template argument deduction/substitution failed:\nMain.cpp:6:11: note: candidate expects 2 arguments, 0 provided\n 6 | queue q;\n | ^\nIn file included from /usr/include/c++/11/queue:64,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_queue.h:179:9: note: candidate: \u2018template<class _Tp, class _Sequence, class _Alloc, class _Requires> queue(const _Alloc&)-> std::queue<_Tp, _Sequence>\u2019\n 179 | queue(const _Alloc& __a)\n | ^~~~~\n/usr/include/c++/11/bits/stl_queue.h:179:9: note: template argument deduction/substitution failed:\nMain.cpp:6:11: note: candidate expects 1 argument, 0 provided\n 6 | queue q;\n | ^\nIn file included from /usr/include/c++/11/queue:64,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_queue.h:174:7: note: candidate: \u2018template<class _Tp, class _Sequence> queue(_Sequence&&)-> std::queue<_Tp, _Sequence>\u2019\n 174 | queue(_Sequence&& __c)\n | ^~~~~\n/usr/include/c++/11/bits/stl_queue.h:174:7: note: template argument deduction/substitution failed:\nMain.cpp:6:11: note: candidate expects 1 argument, 0 provided\n 6 | queue q;\n | ^\nIn file included from /usr/include/c++/11/queue:64,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_queue.h:170:7: note: candidate: \u2018template<class _Tp, class _Sequence> queue(const _Sequence&)-> std::queue<_Tp, _Sequence>\u2019\n 170 | queue(const _Sequence& __c)\n | (...truncated, total 6461 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.