Problem | fenwicktree |
---|---|
User | FIips |
Submission Time | 2024-12-04 11:57:18 |
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:9:31: error: expected ‘;’ before ‘)’ token
9 | for(; x < MAXN, x += (x&(-x))) fw[x] += v;
| ^
| ;
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’