| Problem | fenwicktree |
|---|---|
| User | FIips |
| Submission Time | 2024-12-04 11:56:36 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp: In function ‘void up(long long int, long long int)’:
fenwicktree.cpp:8:12: error: ‘MAXN’ was not declared in this scope
8 | for(; x < MAXN, x += (x&(-x))) fw[x] += v;
| ^~~~
fenwicktree.cpp:8:31: error: expected ‘;’ before ‘)’ token
8 | for(; x < MAXN, x += (x&(-x))) fw[x] += v;
| ^
| ;
fenwicktree.cpp:8:33: error: ‘fw’ was not declared in this scope; did you mean ‘ft’?
8 | for(; x < MAXN, x += (x&(-x))) fw[x] += v;
| ^~
| ft
fenwicktree.cpp: In function ‘long long int qry(long long int)’:
fenwicktree.cpp:14:37: error: ‘fw’ was not declared in this scope; did you mean ‘ft’?
14 | for(; r > 0; r -= (r&(-r))) ans += fw[r];
| ^~
| ft
At global scop