실행 실패 (제출 코드 컴파일 에러)
{"success": false, "stderr": "Main.cpp: In function \u2018std::pair<long long int, long long int> select_num(int, int, int)\u2019:\nMain.cpp:34:22: error: no match for \u2018operator!=\u2019 (operand types are \u2018__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type\u2019 {aka \u2018std::pair<long long int, long long int>\u2019} and \u2018std::pair<int, int>\u2019)\n 34 | if (dp[left][used] != make_pair(-1, -1)) {\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:67,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from Main.cpp:1:\n/usr/include/c++/11/bits/stl_iterator.h:495:5: note: candidate: \u2018template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const std::reverse_iterator<_IteratorL>&, const std::reverse_iterator<_IteratorR>&) requires requires{{std::operator==::__x->base() == std::operator==::__y->base()} -> decltype(auto) [requires std::convertible_to<<placeholder>, bool>];}\u2019 (reversed)\n 495 | operator==(const reverse_iterator<_IteratorL>& __x,\n | ^~~~~~~~\n/usr/include/c++/11/bits/stl_iterator.h:495:5: note: template argument deduction/substitution failed:\nMain.cpp:34:41: note: \u2018std::pair<int, int>\u2019 is not derived from \u2018const std::reverse_iterator<_IteratorL>\u2019\n 34 | if (dp[left][used] != make_pair(-1, -1)) {\n | ^\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:67,\n from /usr/include/c++/11/bits/char_traits.h:39,\n from /usr/include/c++/11/string:40,\n from Main.cpp:1:\n/usr/include/c++/11/bits/stl_iterator.h:1585:5: note: candidate: \u2018template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&) requires requires{{std::operator==::__x->base() == std::operator==::__y->base()} -> decltype(auto) [requires std::convertible_to<<placeholder>, bool>];}\u2019 (reversed)\n 1585 | operator==(const move_iterator<_IteratorL>& __x,\n | ^~~~~~~~\n/usr/include/c++/11/bits/stl_iterator.h:1585:5: note: template argument deduction/substitution failed:\nMain.cpp:34:41: note: \u2018std::pair<int, int>\u2019 is not derived from \u2018const std::move_iterator<_IteratorL>\u2019\n 34 | if (dp[left][used] != make_pair(-1, -1)) {\n | ^\nIn file included from /usr/include/c++/11/string:41,\n from Main.cpp:1:\n/usr/include/c++/11/bits/allocator.h:218:5: note: candidate: \u2018template<class _T1, class _T2> constexpr bool std::operator==(const std::allocator<_CharT>&, const std::allocator<_T2>&)\u2019 (reversed)\n 218 | operator==(const allocator<_T1>&, const allocator<_T2>&)\n | ^~~~~~~~\n/usr/include/c++/11/bits/allocator.h:218:5: note: template argument deduction/substitution failed:\nMain.cpp:34:41: note: \u2018std::pair<int, int>\u2019 is not derived from \u2018const std::allocator<_CharT>\u2019\n 34 | if (dp[left][used] != make_pair(-1, -1)) {\n | ^\nIn file included from /usr/include/c++/11/bits/basic_string.h:48,\n from /usr/include/c++/11/string:55,\n from Main.cpp:1:\n/usr/include/c++/11/string_view:541:5: note: candidate: \u2018template<class _CharT, class _Traits> constexpr bool std::operator==(std::basic_string_view<_CharT, _Traits>, std::__type_identity_t<std::basic_string_view<_CharT, _Traits> >)\u2019 (reversed)\n 541 | operator==(basic_string_view<_CharT, _Traits> __x,\n | ^~~~~~~~\n/usr/include/c++/11/string_view:541:5: note: template argument deduction/substitution failed:\nMain.cpp:34:41: note: \u2018std::pair<int, int>\u2019 is not derived from \u2018std::basic_string_view<_CharT, _Traits>\u2019\n 34 | if (dp[left][used] != make_pair(-1, -1)) {\n | ^\nIn file included from /usr/include/c++/11/string:55,\n from Main.cpp:1:\n/usr/include/c++/11/bits/basic_string.h:6248:5: note: candidate: \u2018template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)\u2019 (reversed)\n 6248 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,\n | ^~~~~~~~\n/usr/include/c++/11/bits/basic_string.h:6248:5: note: template argument deduction/substitution failed:\nMain.cpp:34:41: note: \u2018std::pair<int, int>\u2019 is not derived from \u2018const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>\u2019\n 34 | if (dp[left][used] != make_pair(-1, -1)) {\n | ^\nIn file included from /usr/include/c++/11/functional:54,\n
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.