Problem hld_easy
User childsetter
Submission Time 2025-12-26 12:59:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hld_easy.cpp: In function ‘void process(int, int, F)’:
hld_easy.cpp:54:8: error: ‘hp’ was not declared in this scope
54 | while(hp[x] != hp[y]) {
| ^~
hld_easy.cpp:62:28: error: no matching function for call to ‘process(int, int&)’
62 | process(pre[x] + 1, pre[y]);
| ^
hld_easy.cpp:53:6: note: candidate: ‘template<class F> void process(int, int, F)’
53 | void process(int x, int y, F f) {
| ^~~~~~~
hld_easy.cpp:53:6: note: template argument deduction/substitution failed:
hld_easy.cpp:62:28: note: candidate expects 3 arguments, 2 provided
62 | process(pre[x] + 1, pre[y]);
| ^
hld_easy.cpp: In lambda function:
hld_easy.cpp:77:60: error: no matching function for call to ‘rurq::qry(int&, int&)’
77 | auto qry = [&fenw,&ans](int x, int y) {ans += fenw.qry(x,y);};
|