Problem hld_easy
User maximushartanto
Submission Time 2026-02-19 12:10:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hld_easy.cpp: In function ‘int main()’:
hld_easy.cpp:96:5: error: ‘LCA’ was not declared in this scope
96 | LCA lca(adj);
| ^~~
hld_easy.cpp:97:5: error: ‘segtree’ was not declared in this scope
97 | segtree s(n);
| ^~~~~~~
hld_easy.cpp:104:30: error: ‘lca’ was not declared in this scope
104 | int lcalca = hld.lab[lca.lca(a, b)];
| ^~~
hld_easy.cpp: In lambda function:
hld_easy.cpp:108:5: error: ‘s’ was not declared in this scope
108 | s.update(l, r, x);
| ^
hld_easy.cpp: In lambda function:
hld_easy.cpp:114:12: error: ‘s’ was not declared in this scope
114 | res += s.query(l, r).v;
| ^