Problem fenwicktree
User Xiaoyang
Submission Time 2024-12-04 13:36:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp: In function ‘void up(long long int, long long int)’:
fenwicktree.cpp:8:10: error: ‘MAX’ was not declared in this scope
8 | for (;x<MAX;x+=(x&(-x))) fw[x]+=v;
| ^~~
fenwicktree.cpp: In function ‘int32_t main()’:
fenwicktree.cpp:26:3: error: ‘upd’ was not declared in this scope; did you mean ‘up’?
26 | upd(i, a);
| ^~~
| up
fenwicktree.cpp:39:4: error: ‘upd’ was not declared in this scope; did you mean ‘up’?
39 | upd(a,c);
| ^~~
| up