Problem expansion
User JustKitkat
Submission Time 2025-01-02 00:58:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

expansion.cpp: In function ‘void solve()’:
expansion.cpp:76:39: error: no matching function for call to ‘node2::qry(int, int, int&)’
76 | ll val = dp->qry(l-1,l-1,L);
| ^
expansion.cpp:33:6: note: candidate: ‘int node2::qry(int, int)’
33 | int qry(int l, int r){
| ^~~
expansion.cpp:33:6: note: candidate expects 2 arguments, 3 provided
expansion.cpp:78:46: error: no matching function for call to ‘node2::upd(int&, int)’
78 | dp->upd(r,val+(cover-ball[i]));
| ^
expansion.cpp:40:7: note: candidate: ‘void node2::upd(int, int, int)’
40 | void upd(int l, int r, int v){
| ^~~
expansion.cpp:40:7: note: candidate expects 3 arguments, 2 provided