Problem | splittingpower |
---|---|
User | PlayVoltz |
Submission Time | 2024-08-06 09:18:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
splittingpower.cpp: In function ‘int32_t main()’:
splittingpower.cpp:43:30: error: no match for ‘operator+’ (operand types are ‘std::pair<long long unsigned int, long long unsigned int>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type’ {aka ‘long long unsigned int’})
43 | for (int i=1; i<=n; ans=(ans+c[i]*v[i])%MOD, ++i)if (i-l[i]>0)v[i]=max(v[i], 2ll*v[i-l[i]]), v[i]%=MOD;
| ~~~^
| |
| std::pair<long long unsigned int, long long unsigned int>
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from splittingpower.cpp:4: