실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:19:23: warning: comparison of integer expressions of different signedness: \u2018int\u2019 and \u2018std::__cxx11::basic_string<char>::size_type\u2019 {aka \u2018long unsigned int\u2019} [-Wsign-compare]\n 19 | for(int i=1; i<x.length()-1; i++) {\n | ~^~~~~~~~~~~~~\nMain.cpp:56:48: error: no match for \u2018operator!=\u2019 (operand types are \u2018std::_Deque_iterator<int, int&, int*>\u2019 and \u2018__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type\u2019 {aka \u2018int\u2019})\n 56 | for(auto it = dq.end(); it != dq.front() + 1; it--) {\n | ~~ ^~ ~~~~~~~~~~~~~~\n | | |\n | | __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}\n | std::_Deque_iterator<int, int&, int*>\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/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_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:56:64: note: mismatched types \u2018const std::reverse_iterator<_IteratorL>\u2019 and \u2018__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type\u2019 {aka \u2018int\u2019}\n 56 | for(auto it = dq.end(); it != dq.front() + 1; it--) {\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/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_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:56:64: note: mismatched types \u2018const std::move_iterator<_IteratorL>\u2019 and \u2018__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type\u2019 {aka \u2018int\u2019}\n 56 | for(auto it = dq.end(); it != dq.front() + 1; it--) {\n | ^\nIn file included from /usr/include/c++/11/string:41,\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/inc(...truncated, total 29932 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.