실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:30:21: warning: comparison of integer expressions of different signedness: \u2018std::vector<int>::size_type\u2019 {aka \u2018long unsigned int\u2019} and \u2018int\u2019 [-Wsign-compare]\n 30 | if(v.size() == n){\n | ~~~~~~~~~^~~~\nMain.cpp:34:10: error: no match for \u2018operator<\u2019 (operand types are \u2018std::ostream\u2019 {aka \u2018std::basic_ostream<char>\u2019} and \u2018const char [2]\u2019)\n 34 | cout < \"<\";\n | ~~~~ ^ ~~~\n | | |\n | | const char [2]\n | std::ostream {aka std::basic_ostream<char>}\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:538:5: note: candidate: \u2018template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const std::reverse_iterator<_IteratorL>&, const std::reverse_iterator<_IteratorR>&)\u2019 (reversed)\n 538 | operator<=>(const reverse_iterator<_IteratorL>& __x,\n | ^~~~~~~~\n/usr/include/c++/11/bits/stl_iterator.h:538:5: note: template argument deduction/substitution failed:\nMain.cpp:34:12: note: mismatched types \u2018const std::reverse_iterator<_IteratorL>\u2019 and \u2018const char [2]\u2019\n 34 | cout < \"<\";\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:1596:5: note: candidate: \u2018template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)\u2019 (reversed)\n 1596 | operator<=>(const move_iterator<_IteratorL>& __x,\n | ^~~~~~~~\n/usr/include/c++/11/bits/stl_iterator.h:1596:5: note: template argument deduction/substitution failed:\nMain.cpp:34:12: note: mismatched types \u2018const std::move_iterator<_IteratorL>\u2019 and \u2018const char [2]\u2019\n 34 | cout < \"<\";\n | ^~~\nIn file included from /usr/include/c++/11/bits/basic_string.h:48,\n from /usr/include/c++/11/string:55,\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/string_view:556:5: note: candidate: \u2018template<class _CharT, class _Traits> constexpr decltype (__char_traits_cmp_cat<_Traits>(0)) std::operator<=>(std::basic_string_view<_CharT, _Traits>, std::__type_identity_t<std::basic_string_view<_CharT, _Traits> >)\u2019 (reversed)\n 556 | operator<=>(basic_string_view<_CharT, _Traits> __x,\n | ^~~~~~~~\n/usr/include/c++/11/string_view:556:5: note: template argument deduction/substitution failed:\nMain.cpp:34:12: note: mismatched types \u2018std::basic_string_view<_CharT, _Traits>\u2019 and \u2018const char*\u2019\n 34 | cout < \"<\";\n | ^~~\nIn file included from /usr/include/c++/11/string:55,\n (...truncated, total 17290 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.