Problem fenwicktree
User Aum
Submission Time 2023-11-10 10:07:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp:3:13: error: expected initializer before ‘long’
3 | #define int long long
| ^~~~
fenwicktree.cpp:6:1: note: in expansion of macro ‘int’
6 | int query(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;
| ^~