Problem fenwicktree_easy
User cobnet
Submission Time 2024-02-27 23:08:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree_easy.cpp: In function ‘void downdate(int, int)’:
fenwicktree_easy.cpp:9:9: error: ‘bit’ was not declared in this scope
9 | bit[x] += v;
| ^~~
fenwicktree_easy.cpp: In function ‘int query(int)’:
fenwicktree_easy.cpp:16:16: error: ‘bit’ was not declared in this scope
16 | sum += bit[x];
| ^~~