실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:26:34: error: no matching function for call to \u2018std::map<int, std::__cxx11::basic_string<char> >::find(std::string&)\u2019\n 26 | else output[j] = Pokedex.find(answer);\n | ~~~~~~~~~~~~^~~~~~~~\nIn file included from /usr/include/c++/11/map:61,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_map.h:1175:9: note: candidate: \u2018template<class _Kt> decltype (((std::map<_Key, _Tp, _Compare, _Alloc>*)this)->std::map<_Key, _Tp, _Compare, _Alloc>::_M_t._M_find_tr(__x)) std::map<_Key, _Tp, _Compare, _Alloc>::find(const _Kt&) [with _Kt = _Kt; _Key = int; _Tp = std::__cxx11::basic_string<char>; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::__cxx11::basic_string<char> > >]\u2019\n 1175 | find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x))\n | ^~~~\n/usr/include/c++/11/bits/stl_map.h:1175:9: note: template argument deduction/substitution failed:\n/usr/include/c++/11/bits/stl_map.h: In substitution of \u2018template<class _Kt> decltype (((std::map<int, std::__cxx11::basic_string<char> >*)this)->std::map<int, std::__cxx11::basic_string<char> >::_M_t.std::_Rb_tree<int, std::pair<const int, std::__cxx11::basic_string<char> >, std::_Select1st<std::pair<const int, std::__cxx11::basic_string<char> > >, std::less<int>, std::allocator<std::pair<const int, std::__cxx11::basic_string<char> > > >::_M_find_tr(__x)) std::map<int, std::__cxx11::basic_string<char> >::find<_Kt>(const _Kt&) [with _Kt = std::__cxx11::basic_string<char>]\u2019:\nMain.cpp:26:34: required from here\n/usr/include/c++/11/bits/stl_map.h:1175:57: error: no matching function for call to \u2018std::_Rb_tree<int, std::pair<const int, std::__cxx11::basic_string<char> >, std::_Select1st<std::pair<const int, std::__cxx11::basic_string<char> > >, std::less<int>, std::allocator<std::pair<const int, std::__cxx11::basic_string<char> > > >::_M_find_tr(const std::__cxx11::basic_string<char>&)\u2019\n 1175 | find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x))\n | ~~~~~~~~~~~~~~~^~~~~\nIn file included from /usr/include/c++/11/map:60,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_tree.h:1294:9: note: candidate: \u2018template<class _Kt, class _Req> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_find_tr(const _Kt&) [with _Kt = _Kt; _Req = _Req; _Key = int; _Val = std::pair<const int, std::__cxx11::basic_string<char> >; _KeyOfValue = std::_Select1st<std::pair<const int, std::__cxx11::basic_string<char> > >; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::__cxx11::basic_string<char> > >]\u2019\n 1294 | _M_find_tr(const _Kt& __k)\n | ^~~~~~~~~~\n/usr/include/c++/11/bits/stl_tree.h:1294:9: note: template argument deduction/substitution failed:\nIn file included from /usr/include/c++/11/string:48,\n from /usr/include/c++/11/bits/locale_classes.h:40,\n from /usr/include/c++/11/bits/ios_base.h:41,\n from /usr/include/c++/11/ios:42,\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_function.h: In substitution of \u2018template<class _Func, class _SfinaeType> using __has_is_transparent_t = typename std::__has_is_transparent<_Func, _SfinaeType>::type [with _Func = std::less<int>; _SfinaeType = std::__cxx11::basic_string<char>]\u2019:\n/usr/include/c++/11/bits/stl_tree.h:1292:9: required by substitution of \u2018template<class _Kt> decltype (((std::map<int, std::__cxx11::basic_string<char> >*)this)->std::map<int, std::__cxx11::basic_string<char> >::_M_t.std::_Rb_tree<int, std::pair<const int, std::__cxx11::basic_string<char> >, std::_Select1st<std::(...truncated, total 11858 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.