Problem | fenwicktree |
---|---|
User | Dolphy |
Submission Time | 2023-12-04 17:08:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp: In function ‘void update(long long int, long long int)’:
fenwicktree.cpp:11:13: error: ‘n’ was not declared in this scope
11 | for(; p <= n; p += (p & -p)) ft[p] += v;
| ^
fenwicktree.cpp: In function ‘int32_t main()’:
fenwicktree.cpp:22:18: error: ‘m’ was not declared in this scope
22 | for (int i=0; i<m; i++) {
| ^
fenwicktree.cpp:27:32: error: invalid conversion from ‘long long int (*)(long long int)’ to ‘long long int’ [-fpermissive]
27 | for (int i=a; i<=b; i++) sum+=query[i];
| ~~~^~~~~~~~~~
| |
| long long int (*)(long long int)