Problem segmenttree
User Blender
Submission Time 2024-04-10 15:27:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In member function ‘void Node::query(long long unsigned int, long long unsigned int)’:
segmenttree.cpp:81:26: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
81 | return this->value;
| ^~~~~
segmenttree.cpp:88:136: error: invalid use of void expression
88 | else return min( this->leftChild->query( rangeStart, this->rangeMiddle ), this->rightChild->query( this->rangeMiddle + 1, rangeEnd ) );
| ^
segmenttree.cpp:88:136: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
segmenttree.cpp: At global scope:
segmenttree.cpp:92:6: error: no matching function for call to ‘Node::Node()’
92 | Node root;
| ^~~~
segmenttree.cpp:24:5: note: candidate: ‘Node::No