QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#863770 | #9222. Price Combo | ZhangYiDe | Compile Error | / | / | C++17 | 4.2kb | 2025-01-19 22:07:20 | 2025-01-19 22:07:25 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘matrix operator+(matrix, matrix)’: answer.code:15:39: warning: overflow in conversion from ‘LL’ {aka ‘long long int’} to ‘int’ changes value from ‘1000000000000000000’ to ‘-1486618624’ [-Woverflow] 15 | c.mat[i][j] = INF; | ^~~ answer.code: In function ‘void update(int)’: answer.code:48:32: error: no match for ‘operator*’ (operand types are ‘matrix’ and ‘matrix’) 48 | mt(p) = Min(mt(p << 1) * mb(p << 1 | 1), mt(p << 1 | 1)); | ^ In file included from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127, from answer.code:2: /usr/include/c++/14/complex:400:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator*(const complex<_Tp>&, const complex<_Tp>&)’ 400 | operator*(const complex<_Tp>& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/14/complex:400:5: note: template argument deduction/substitution failed: answer.code:38:28: note: ‘matrix’ is not derived from ‘const std::complex<_Tp>’ 38 | #define mb(x) t[x].mb | ^~ answer.code:48:34: note: in expansion of macro ‘mb’ 48 | mt(p) = Min(mt(p << 1) * mb(p << 1 | 1), mt(p << 1 | 1)); | ^~ /usr/include/c++/14/complex:409:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator*(const complex<_Tp>&, const _Tp&)’ 409 | operator*(const complex<_Tp>& __x, const _Tp& __y) | ^~~~~~~~ /usr/include/c++/14/complex:409:5: note: template argument deduction/substitution failed: answer.code:38:28: note: ‘matrix’ is not derived from ‘const std::complex<_Tp>’ 38 | #define mb(x) t[x].mb | ^~ answer.code:48:34: note: in expansion of macro ‘mb’ 48 | mt(p) = Min(mt(p << 1) * mb(p << 1 | 1), mt(p << 1 | 1)); | ^~ /usr/include/c++/14/complex:418:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator*(const _Tp&, const complex<_Tp>&)’ 418 | operator*(const _Tp& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/14/complex:418:5: note: template argument deduction/substitution failed: answer.code:38:28: note: ‘matrix’ is not derived from ‘const std::complex<_Tp>’ 38 | #define mb(x) t[x].mb | ^~ answer.code:48:34: note: in expansion of macro ‘mb’ 48 | mt(p) = Min(mt(p << 1) * mb(p << 1 | 1), mt(p << 1 | 1)); | ^~ In file included from /usr/include/c++/14/valarray:605, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166: /usr/include/c++/14/bits/valarray_after.h:407:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__multiplies, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__multiplies, typename _Dom1::value_type>::result_type> std::operator*(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)’ 407 | _DEFINE_EXPR_BINARY_OPERATOR(*, struct std::__multiplies) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:407:5: note: template argument deduction/substitution failed: answer.code:38:28: note: ‘matrix’ is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ 38 | #define mb(x) t[x].mb | ^~ answer.code:48:34: note: in expansion of macro ‘mb’ 48 | mt(p) = Min(mt(p << 1) * mb(p << 1 | 1), mt(p << 1 | 1)); | ^~ /usr/include/c++/14/bits/valarray_after.h:407:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__multiplies, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__multiplies, typename _Dom1::value_type>::result_type> std::operator*(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)’ 407 | _DEFINE_EXPR_BINARY_OPERATOR(*, struct std::__multiplies) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/valarray_after.h:407:5: note: template argument deduction/substitution failed: answer.code:38:28: note: ‘matrix’ is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ 38 | #define mb(x) t[x].mb | ^~ answer.code:48:34: note: in expansion of macro ‘mb’ 48 | mt(p) = Min(mt(p << 1) * mb(p << 1 | 1), mt(p << 1 | 1)); | ^~ /usr/include/c++/14/bits/valarray_after.h:407:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__multiplies, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__multiplies, typen...