Problem | fenwicktree |
---|---|
User | Aum |
Submission Time | 2023-11-10 10:06:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp:6:1: error: expected initializer before ‘int32_t’
6 | int32_t main(int s, int e) {
| ^~~~~~~
fenwicktree.cpp: In function ‘void update(long long int, long long int)’:
fenwicktree.cpp:13:10: error: ‘n’ was not declared in this scope
13 | for(;p<=n+1;p+=lsb(p)) ft[p] += v;
| ^
fenwicktree.cpp:13:25: error: ‘ft’ was not declared in this scope
13 | for(;p<=n+1;p+=lsb(p)) ft[p] += v;
| ^~