실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:125:34: warning: unused variable \u2018middle\u2019 [-Wunused-variable]\n 125 | NodeData middle = { mid ,mid ,mid ,mid };\n | ^~~~~~\nMain.cpp:147:44: error: no matching function for call to \u2018max(const int64_t&, long long int)\u2019\n 147 | max(overlap.in_max, 0LL)\n | ~~~^~~~~~~~~~~~~~~~~~~~~\nIn file included 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_algobase.h:254:5: note: candidate: \u2018template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)\u2019\n 254 | max(const _Tp& __a, const _Tp& __b)\n | ^~~\n/usr/include/c++/11/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:\nMain.cpp:147:44: note: deduced conflicting types for parameter \u2018const _Tp\u2019 (\u2018long int\u2019 and \u2018long long int\u2019)\n 147 | max(overlap.in_max, 0LL)\n | ~~~^~~~~~~~~~~~~~~~~~~~~\nIn file included 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_algobase.h:300:5: note: candidate: \u2018template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)\u2019\n 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)\n | ^~~\n/usr/include/c++/11/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:\nMain.cpp:147:44: note: deduced conflicting types for parameter \u2018const _Tp\u2019 (\u2018long int\u2019 and \u2018long long int\u2019)\n 147 | max(overlap.in_max, 0LL)\n | ~~~^~~~~~~~~~~~~~~~~~~~~\nIn file included from /usr/include/c++/11/string:52,\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_algo.h:3461:5: note: candidate: \u2018template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)\u2019\n 3461 | max(initializer_list<_Tp> __l)\n | ^~~\n/usr/include/c++/11/bits/stl_algo.h:3461:5: note: template argument deduction/substitution failed:\nMain.cpp:147:44: note: mismatched types \u2018std::initializer_list<_Tp>\u2019 and \u2018long int\u2019\n 147 | max(overlap.in_max, 0LL)\n | ~~~^~~~~~~~~~~~~~~~~~~~~\nIn file included from /usr/include/c++/11/string:52,\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_algo.h:3467:5: note: candidate: \u2018template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)\u2019\n 3467 | max(initializer_list<_Tp> __l, _Compare __comp)\n | ^~~\n/usr/include/c++/11/bits/stl_algo.h:3467:5: note: template argument deduction/substitution failed:\nMain.cpp:14(...truncated, total 4246 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.