Problem segmenttree
User DaPeter
Submission Time 2025-12-03 14:44:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:36:29: error: ‘v’ was not declared in this scope
36 | if (t==1){int x,y;cin>>x>>v; root->upd(x,y);}
| ^
segmenttree.cpp:37:46: error: expected ‘;’ before ‘}’ token
37 | else{int x,y;cin>>x>>y;cout<<root->qry(x,y)}
| ^
| ;