실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp:7:68: error: wrong number of template arguments (1, should be 2)\n 7 | bool compare(pair<pair<int, int> xy1, pair<pair<int, int>, string> xy2) {\n | ^~~\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:64,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/ios:40,\n from /usr/include/c++/11/ostream:38,\n from /usr/include/c++/11/iostream:39,\n from Main.cpp:1:\n/usr/include/c++/11/bits/stl_pair.h:211:12: note: provided for \u2018template<class _T1, class _T2> struct std::pair\u2019\n 211 | struct pair\n | ^~~~\nMain.cpp:7:68: error: wrong number of template arguments (1, should be 2)\n 7 | bool compare(pair<pair<int, int> xy1, pair<pair<int, int>, string> xy2) {\n | ^~~\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:64,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/ios:40,\n from /usr/include/c++/11/ostream:38,\n from /usr/include/c++/11/iostream:39,\n from Main.cpp:1:\n/usr/include/c++/11/bits/stl_pair.h:211:12: note: provided for \u2018template<class _T1, class _T2> struct std::pair\u2019\n 211 | struct pair\n | ^~~~\nMain.cpp:7:68: error: wrong number of template arguments (1, should be 2)\n 7 | bool compare(pair<pair<int, int> xy1, pair<pair<int, int>, string> xy2) {\n | ^~~\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:64,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/ios:40,\n from /usr/include/c++/11/ostream:38,\n from /usr/include/c++/11/iostream:39,\n from Main.cpp:1:\n/usr/include/c++/11/bits/stl_pair.h:211:12: note: provided for \u2018template<class _T1, class _T2> struct std::pair\u2019\n 211 | struct pair\n | ^~~~\nMain.cpp:7:68: error: wrong number of template arguments (1, should be 2)\n 7 | bool compare(pair<pair<int, int> xy1, pair<pair<int, int>, string> xy2) {\n | ^~~\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:64,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/ios:40,\n from /usr/include/c++/11/ostream:38,\n from /usr/include/c++/11/iostream:39,\n from Main.cpp:1:\n/usr/include/c++/11/bits/stl_pair.h:211:12: note: provided for \u2018template<class _T1, class _T2> struct std::pair\u2019\n 211 | struct pair\n | ^~~~\nMain.cpp:7:14: error: invalid template-id\n 7 | bool compare(pair<pair<int, int> xy1, pair<pair<int, int>, string> xy2) {\n | ^~~~\nMain.cpp:7:71: error: missing template arguments before \u2018)\u2019 token\n 7 | bool compare(pair<pair<int, int> xy1, pair<pair<int, int>, string> xy2) {\n | ^\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:71,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/ios:40,\n from /usr/include/c++/11/ostream:38,\n from /usr/include/c++/11/iostream:39,\n from Main.cpp:1:\n/usr/include/c++/11/bits/predefined_ops.h: In instantiation of \u2018constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<std::pair<std::pair<int, int>, std::__cxx11::basic_string<char> >*, std::vector<std:(...truncated, total 13705 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.