Problem duckwalk
User 2110100
Submission Time 2023-09-06 22:33:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckwalk.cpp: In function ‘void cover(int, int, int, int, int, int)’:
duckwalk.cpp:28:25: error: ‘ls’ was not declared in this scope; did you mean ‘l’?
28 | if (x <= mid) cover(ls, l, mid, x, y, z);
| ^~
| l
duckwalk.cpp:29:24: error: ‘rs’ was not declared in this scope; did you mean ‘r’?
29 | if (y > mid) cover(rs, mid + 1, r, x, y, z);
| ^~
| r
duckwalk.cpp: In function ‘int que(int, int, int, int)’:
duckwalk.cpp:35:41: error: ‘ls’ was not declared in this scope; did you mean ‘l’?
35 | if (x <= mid) return max(ti[u], que(ls, l, mid, x));
| ^~
| l
duckwalk.cpp:36:27: error: ‘rs’ was not declared in this scope; did you mean ‘r’?
36 | return max(ti[u], que(rs, mid + 1, r, x));
|