Problem rmaxq
User Pyrros
Submission Time 2023-02-22 20:57:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rmaxq.cpp: In function ‘long long int query(ll, ll, ll, ll, ll)’:
rmaxq.cpp:40:43: error: ‘v’ was not declared in this scope
40 | ll left = query(s, mid, ind*2+1, qs, qe, v);
| ^
rmaxq.cpp: In function ‘void update(ll, ll, ll, ll, ll, ll)’:
rmaxq.cpp:73:31: error: ‘v’ was not declared in this scope
73 | update(s, mid, qs, qe, diff, v, ind*2+1);
| ^