Problem segmenttree
User gohchingjayk
Submission Time 2024-09-24 16:22:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp:9:17: error: ‘_high’ has not been declared
9 | Node(int _low, _high) {
| ^~~~~
segmenttree.cpp:32:2: error: expected ‘;’ after struct definition
32 | }
| ^
| ;
segmenttree.cpp: In constructor ‘Node::Node(int, int)’:
segmenttree.cpp:11:10: error: ‘_high’ was not declared in this scope; did you mean ‘high’?
11 | high = _high;
| ^~~~~
| high
segmenttree.cpp: In member function ‘int Node::rangeMinQuery(int, int)’:
segmenttree.cpp:20:30: error: ‘reutrn’ was not declared in this scope
20 | if (x <= low && high <= y) reutrn value;
| ^~~~~~
segmenttree.cpp: In member function ‘void Node::update(int, int)’:
segmenttree.cpp:27:31: error: expected primary-expression before ‘return’
27 | if (low == high) value = v, return;
| ^~~~~~