Problem fenwicktree
User FIips
Submission Time 2024-12-04 11:57:37
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:9:33: error: ‘fw’ was not declared in this scope; did you mean ‘ft’?
9 | for(; x < MAXN; x += (x&(-x))) fw[x] += v;
| ^~
| ft
fenwicktree.cpp: In function ‘long long int qry(long long int)’:
fenwicktree.cpp:15:37: error: ‘fw’ was not declared in this scope; did you mean ‘ft’?
15 | for(; r > 0; r -= (r&(-r))) ans += fw[r];
| ^~
| ft
At global scope:
cc1plus: error: ‘::main’ must return ‘int’