실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:10:13: error: no match for \u2018operator==\u2019 (operand types are \u2018std::string\u2019 {aka \u2018std::__cxx11::basic_string<char>\u2019} and \u2018int\u2019)\n 10 | if(N==0)\n | ~^~~\n | | |\n | | int\n | std::string {aka std::__cxx11::basic_string<char>}\nIn file included from /usr/include/c++/11/regex:63,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:110,\n from Main.cpp:1:\n/usr/include/c++/11/bits/regex.h:1230:5: note: candidate: \u2018template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const std::__cxx11::sub_match<_BiIter>&, std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)\u2019 (reversed)\n 1230 | operator==(const sub_match<_Bi_iter>& __lhs,\n | ^~~~~~~~\n/usr/include/c++/11/bits/regex.h:1230:5: note: template argument deduction/substitution failed:\nMain.cpp:10:15: note: mismatched types \u2018const std::__cxx11::sub_match<_BiIter>\u2019 and \u2018int\u2019\n 10 | if(N==0)\n | ^\nIn file included from /usr/include/c++/11/regex:63,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:110,\n from Main.cpp:1:\n/usr/include/c++/11/bits/regex.h:1397:5: note: candidate: \u2018template<class _Bi_iter> bool std::__cxx11::operator==(const std::__cxx11::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)\u2019 (reversed)\n 1397 | operator==(const sub_match<_Bi_iter>& __lhs,\n | ^~~~~~~~\n/usr/include/c++/11/bits/regex.h:1397:5: note: template argument deduction/substitution failed:\nMain.cpp:10:15: note: mismatched types \u2018const std::__cxx11::sub_match<_BiIter>\u2019 and \u2018int\u2019\n 10 | if(N==0)\n | ^\nIn file included from /usr/include/c++/11/regex:63,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:110,\n from Main.cpp:1:\n/usr/include/c++/11/bits/regex.h:1569:5: note: candidate: \u2018template<class _Bi_iter> bool std::__cxx11::operator==(const std::__cxx11::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)\u2019 (reversed)\n 1569 | operator==(const sub_match<_Bi_iter>& __lhs,\n | ^~~~~~~~\n/usr/include/c++/11/bits/regex.h:1569:5: note: template argument deduction/substitution failed:\nMain.cpp:10:15: note: mismatched types \u2018const std::__cxx11::sub_match<_BiIter>\u2019 and \u2018int\u2019\n 10 | if(N==0)\n | ^\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:67,\n from /usr/include/c++/11/bits/specfun.h:45,\n from /usr/include/c++/11/cmath:1935,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:41,\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:10:15: note: mismatched types \u2018const std::reverse_iterator<_IteratorL>\u2019 and \u2018int\u2019\n 10 | if(N==0)\n | ^\nIn file included from /usr/include/c++/11/bits/stl_algobase.h:67,\n from /usr/include/c++/11/bits/specfun.h:45,\n from /usr/include/c++/11/cmath:1935,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/std(...truncated, total 62408 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.