Problem | fenwicktree |
---|---|
User | Aum |
Submission Time | 2023-11-10 10:05:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp: In function ‘int32_t main(long long int, long long int)’:
fenwicktree.cpp:8:35: error: ‘ft’ was not declared in this scope
8 | for(; e > 0; e -= lsb(e)) sum += ft[e];
| ^~
fenwicktree.cpp:9:35: error: ‘ft’ was not declared in this scope
9 | for(; s > 0; s -= lsb(e)) sum += ft[s];
| ^~
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;
| ^~