Problem rmaxq
User chickengoat
Submission Time 2025-12-03 17:01:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rmaxq.cpp:5:10: error: array bound is not an integer constant before ‘]’ token
5 | ll init[n];
| ^
rmaxq.cpp: In constructor ‘node::node(ll, ll)’:
rmaxq.cpp:12:19: error: ‘init’ was not declared in this scope; did you mean ‘int’?
12 | val = init[S];
| ^~~~
| int
rmaxq.cpp: In member function ‘void node::upd(ll, ll, ll)’:
rmaxq.cpp:31:30: error: no matching function for call to ‘node::upd(ll&, ll&)’
31 | if(p <= M) L->upd(p,v);
| ^
rmaxq.cpp:26:10: note: candidate: ‘void node::upd(ll, ll, ll)’
26 | void upd(ll p, ll v,ll q){
| ^~~
rmaxq.cpp:26:10: note: candidate expects 3 arguments, 2 provided
rmaxq.cpp:32:25: error: no matching function for call to ‘node::upd(ll&, ll&)’
32 | else R->upd(p, v);
| ^
rmaxq.cpp:26:10: note: candidate: