Problem | fenwicktree |
---|---|
User | cobnet |
Submission Time | 2024-02-27 21:11:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp: In function ‘void update(int, int, int)’:
fenwicktree.cpp:10:16: error: invalid operands of types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} and ‘double’ to binary ‘operator%’
10 | bit[x] %= (1e9+7);
fenwicktree.cpp:10:25: error: in evaluation of ‘operator%=(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}, double)’
10 | bit[x] %= (1e9+7);
| ^