Problem localexpress
User Reverberate
Submission Time 2024-01-31 10:52:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

localexpress.cpp: In function ‘int main()’:
localexpress.cpp:27:20: error: no match for ‘operator%’ (operand types are ‘std::pair<long long int, long long int>’ and ‘int’)
27 | dp[i]=(tmp2%MOD);
| ~~~~^
| |
| std::pair<long long int, long long int>
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from localexpress.cpp:1:
/usr/include/c++/9/bits/valarray_after.h:409:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__modulus, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__modulus, typename _Dom1::value_type>::result_type> std::operator%(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)’
409 | _DEFINE_EXPR_BINARY_O