Problem tree_ioi24
User gelastropod
Submission Time 2026-05-21 09:12:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tree_ioi24.cpp: In member function ‘void node::upd(long long int, long long int)’:
tree_ioi24.cpp:27:23: error: no matching function for call to ‘node::upd(long long int&)’
27 | if (n <= m) l->upd(n);
| ^
tree_ioi24.cpp:22:7: note: candidate: ‘void node::upd(long long int, long long int)’
22 | void upd(int n, int x) {
| ^~~
tree_ioi24.cpp:22:7: note: candidate expects 2 arguments, 1 provided
tree_ioi24.cpp:28:16: error: no matching function for call to ‘node::upd(long long int&)’
28 | else r->upd(n);
| ^
tree_ioi24.cpp:22:7: note: candidate: ‘void node::upd(long long int, long long int)’
22 | void upd(int n, int x) {
| ^~~
tree_ioi24.cpp:22:7: note: candidate expects 2 arguments, 1 provided
tree_ioi24.cpp: In function ‘void init(std::vector<int>, std::vector<int>)’:
tree_ioi24.cpp:86:6: error: no match for ‘operator=’ (opera