실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:114:18: error: no matching function for call to \u2018max(int, long long int)\u2019\n 114 | cout<<max(0, crr[b]-crr[a-1]-dfs(a, b))<<\"\\n\";\n | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nIn file included 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_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:114:18: note: deduced conflicting types for parameter \u2018const _Tp\u2019 (\u2018int\u2019 and \u2018long long int\u2019)\n 114 | cout<<max(0, crr[b]-crr[a-1]-dfs(a, b))<<\"\\n\";\n | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nIn file included 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_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:114:18: note: deduced conflicting types for parameter \u2018const _Tp\u2019 (\u2018int\u2019 and \u2018long long int\u2019)\n 114 | cout<<max(0, crr[b]-crr[a-1]-dfs(a, b))<<\"\\n\";\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/istream:38,\n from /usr/include/c++/11/sstream:38,\n from /usr/include/c++/11/complex:45,\n from /usr/include/c++/11/ccomplex:39,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:54,\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:114:18: note: mismatched types \u2018std::initializer_list<_Tp>\u2019 and \u2018int\u2019\n 114 | cout<<max(0, crr[b]-crr[a-1]-dfs(a, b))<<\"\\n\";\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/istream:38,\n from /usr/include/c++/11/sstream:38,\n from /usr/include/c++/11/complex:45,\n from /usr/include/c++/11/ccomplex:39,\n from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:54,\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:114:18: note: (...truncated, total 4203 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.