Compilable and basic test pass for segment tree with lazy propagation