Problem | rmaxq |
---|---|
User | FIips |
Submission Time | 2025-02-07 10:36:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rmaxq.cpp: In member function ‘void node::prop()’:
rmaxq.cpp:17:17: error: continue statement not within a loop
17 | if(lazy == 0) continue;
| ^~~~~~~~
rmaxq.cpp: In constructor ‘node::node(long long int, long long int)’:
rmaxq.cpp:39:12: error: invalid operands of types ‘node*’ and ‘node*’ to binary ‘operator+’
39 | mid = (l + r) / 2;
| ~ ^ ~
| | |
| | node*
| node*
rmaxq.cpp:40:16: error: invalid conversion from ‘node*’ to ‘long long int’ [-fpermissive]
40 | l = new node(l, mid);
| ^
| |
| node*
rmaxq.cpp:33:11: note: initializing argument 1 of ‘node::node(long long int, long long int)’
33 | node(int s_, int e_) : s(s_), e(e_), lazy(0) {
| ^
rmaxq.cpp: In member function ‘long long int node::rqry(long long int, long long int)’:
rmaxq.cpp:51:4