| 6 | vi sz, head, parent, loc; |
| 7 | vvi adj; segment_tree values; |
| 8 | HLD(int _n) : n(_n), sz(n, 1), head(n), |
| 9 | parent(n, -1), loc(n), adj(n) { |
| 10 | vector<ll> tmp(n, ID); values = segment_tree(tmp); } |
| 11 | void add_edge(int u, int v) { |
| 12 | adj[u].push_back(v); adj[v].push_back(u); } |
| 13 | void update_cost(int u, int v, int c) { |
nothing calls this directly
no test coverage detected