Problem fenwicktree
User Dolphy
Submission Time 2023-12-04 17:08:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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)