Problem segmenttree
User jieqinglovescoding
Submission Time 2023-01-28 10:22:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp:22:2: error: ‘l’ does not name a type
22 | l=new node (s,m);
| ^
segmenttree.cpp:23:2: error: ‘r’ does not name a type
23 | r=new node (m+1,e);
| ^
segmenttree.cpp:24:10: error: ISO C++ forbids declaration of ‘combine’ with no type [-fpermissive]
24 | combine();
| ^
segmenttree.cpp: In constructor ‘node::node(int, int)’:
segmenttree.cpp:17:6: error: ‘A’ was not declared in this scope
17 | v=A[s];
| ^
segmenttree.cpp: In function ‘void combine()’:
segmenttree.cpp:28:2: error: ‘v’ was not declared in this scope
28 | v=min(l->v,r->v);
| ^
segmenttree.cpp:28:8: error: ‘l’ was not declared in this scope
28 | v=min(l->v,r->v);
| ^
segmenttree.cpp:28:13: error: ‘r’ was not declared in this scope
28 | v=min(l->v,r->v);
| ^
segmenttree.cpp: In function ‘void update(int, int)’:
segment