Problem segmenttree
User maximushartanto
Submission Time 2025-09-20 16:43:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In function ‘void upd(int, int)’:
segmenttree.cpp:8:10: error: ‘seg’ was not declared in this scope
8 | for (seg[i += n] = p; i > 1; i >>= 1){
| ^~~