Problem fenwicktree
User Runjia
Submission Time 2025-03-15 10:39:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp: In function ‘int main()’:
fenwicktree.cpp:22:23: error: expected ‘;’ before ‘}’ token
22 | cin >>x,y; query (x)
| ^
| ;
23 | }else if (T==1){
| ~
fenwicktree.cpp:24:25: error: too few arguments to function ‘void update(int, int, int)’
24 | cin >> a,b,c; update ();
| ^
fenwicktree.cpp:9:7: note: declared here
9 | void update(int p, int v, int n) {
| ^~~~~~