Problem segmenttree
User zhehanp
Submission Time 2024-09-24 16:23:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In constructor ‘node::node(int, int)’:
segmenttree.cpp:9:37: error: expected ‘(’ before ‘=’ token
9 | s(_s),e(_e),m((_s+_e)/2),val=0{
| ^
| (
segmenttree.cpp:9:37: error: expected ‘{’ before ‘=’ token
segmenttree.cpp: In member function ‘void node::upd(int, int)’:
segmenttree.cpp:34:20: error: ‘struct node’ has no member named ‘v’
34 | val=min(l->v,r->v);
| ^
segmenttree.cpp:34:25: error: ‘struct node’ has no member named ‘v’
34 | val=min(l->v,r->v);
| ^
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:49:25: error: ‘struct node’ has no member named ‘qry’
49 | cout<<root->qry(b,c)<<'\n';
| ^~~