실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018Node qry(int, int)\u2019:\nMain.cpp:37:9: warning: this \u2018if\u2019 clause does not guard... [-Wmisleading-indentation]\n 37 | if(l&1) rl=merge(rl,tree[l++]); if(r&1) rr=merge(tree[--r],rr);\n | ^~\nMain.cpp:37:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the \u2018if\u2019\n 37 | if(l&1) rl=merge(rl,tree[l++]); if(r&1) rr=merge(tree[--r],rr);\n | ^~\nMain.cpp: In function \u2018int main()\u2019:\nMain.cpp:54:29: error: no matching function for call to \u2018max(ll, int)\u2019\n 54 | if(b<=c) cout << max(qry(a-1,b-1).rm,0) + qry(b-1,c).sum + max(qry(c,d).lm,0) << \"\\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:54:29: note: deduced conflicting types for parameter \u2018const _Tp\u2019 (\u2018long long int\u2019 and \u2018int\u2019)\n 54 | if(b<=c) cout << max(qry(a-1,b-1).rm,0) + qry(b-1,c).sum + max(qry(c,d).lm,0) << \"\\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:54:29: note: deduced conflicting types for parameter \u2018const _Tp\u2019 (\u2018long long int\u2019 and \u2018int\u2019)\n 54 | if(b<=c) cout << max(qry(a-1,b-1).rm,0) + qry(b-1,c).sum + max(qry(c,d).lm,0) << \"\\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:54:29: note: mismatched types \u2018std::initializer_list<_Tp>\u2019 and \u2018long long int\u2019\n 54 | if(b<=c) cout << max(qry(a-1,b-1).rm,0) + qry(b-1,c).sum + max(qry(c,d).lm,0) << \"\\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/is(...truncated, total 9455 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.