Problem hld_easy_2
User maximushartanto
Submission Time 2025-12-26 15:51:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hld_easy_2.cpp: In member function ‘i64 HLD::query(int, int)’:
hld_easy_2.cpp:218:13: error: no match for ‘operator+=’ (operand types are ‘i64’ {aka ‘long long int’} and ‘HLD::segtree::node’)
218 | res += seg.query(lab[a], lab[b]);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
hld_easy_2.cpp: In instantiation of ‘void HLD::segtree::update(int, int, int, int, int, const A& ...) [with A = {}]’:
hld_easy_2.cpp:85:56: required from ‘void HLD::segtree::update(int, int, const A& ...) [with A = {}]’
hld_easy_2.cpp:198:34: required from here
hld_easy_2.cpp:90:21: error: no matching function for call to ‘HLD::segtree::node::apply(int&, int&)’
90 | t[ti].apply(tl, tr, a...);
| ^
hld_easy_2.cpp:20:18: note: candidate: ‘void HLD::segtree::node::apply(int, int, i64)’
20 | void apply(int l, int r, i64 x){
| ^~~~~
hld_easy_2.cpp:20:18: note: candidate expect