Problem | fenwicktree |
---|---|
User | cobnet |
Submission Time | 2024-02-27 21:10:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp: In function ‘void update(int, int)’:
fenwicktree.cpp:8:17: error: ‘n’ was not declared in this scope
8 | while (x <= n) {
| ^
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);
| ^