Problem | segmenttree2 |
---|---|
User | Blender |
Submission Time | 2024-04-11 09:44:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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 )
| ^~~~
segmenttree2.cpp:82:9: error: invalid use of ‘this’ in non-member function
82 | this->value += delta;
| ^~~~
segmenttree2.cpp:84:15: error: ‘rangeEnd’ was not declared in this scope
84 | else if ( rangeEnd <= this->rangeMiddle )
| ^~~~~~~~
segmenttree2.cpp:84:27: error: invalid use of ‘this’ in non-member function
84 | else if ( rangeEnd <= this->rangeMiddle )