Problem fenwicktree
User wrizz69
Submission Time 2023-11-10 11:36:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp: In function ‘void update(long long int, long long int)’:
fenwicktree.cpp:14:21: error: ‘n’ was not declared in this scope
14 | for (; p <= n + 1; p += lsb(p)) ft[p] += v;
| ^
fenwicktree.cpp: In function ‘int32_t main()’:
fenwicktree.cpp:34:16: error: expected ‘;’ before ‘}’ token
34 | update(x, z)
| ^
| ;
35 | }
| ~