Problem segmenttree2
User Blender
Submission Time 2024-04-11 09:43:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp: In member function ‘void Node::updateSingle(long long unsigned int, long long int)’:
segmenttree2.cpp:72:30: error: ‘struct Node’ has no member named ‘update’
72 | this->leftChild->update( index, value );
| ^~~~~~
segmenttree2.cpp:73:32: error: ‘struct Node’ has no member named ‘update’
73 | else this->rightChild->update( index, value );
| ^~~~~~
segmenttree2.cpp: In function ‘long long int updateRange(long long unsigned int, long long unsigned int, long long int)’:
segmenttree2.cpp:81:19: error: invalid use of ‘this’ in non-member function
81 | if ( start == this->rangeStart && end == this->rangeEnd )
| ^~~~
segmenttree2.cpp:81:46: error: invalid use of ‘this’ in non-member function
81 | if ( start == this->rangeStart && end == this->rangeEnd )
|