Problem | fenwicktree |
---|---|
User | wrizz69 |
Submission Time | 2024-12-09 15:04:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp:5:13: error: array bound is not an integer constant before ‘]’ token
5 | int init[MAX]; //fill up with intitial values
| ^
fenwicktree.cpp: In constructor ‘node::node(int, int)’:
fenwicktree.cpp:11:19: error: ‘init’ was not declared in this scope; did you mean ‘int’?
11 | val = init[S];
| ^~~~
| int
fenwicktree.cpp: In function ‘int32_t main()’:
fenwicktree.cpp:73:25: error: no matching function for call to ‘node::upd(int&, int&)’
73 | root -> upd(i, a);
| ^
fenwicktree.cpp:43:10: note: candidate: ‘void node::upd(int, int, int)’
43 | void upd(int l, int r, int v){
| ^~~
fenwicktree.cpp:43:10: note: candidate expects 3 arguments, 2 provided