0_0_38691364_4106.cpp: In function 'int subQuery(int, int, int, int, int, int)':
0_0_38691364_4106.cpp:2:38: error: 's' was not declared in this scope
2 | if (yL <= pl && pr <= yR) return s[xp][p];
| ^
0_0_38691364_4106.cpp:6:51: error: 'ls' was not declared in this scope
6 | if (yL <= mid) res = subQuery(xp, yL, yR, ls(p), pl, mid);
| ^~
0_0_38691364_4106.cpp:7:59: error: 'rs' was not declared in this scope; did you mean 'res'?
7 | if (yR > mid) res = max(res, subQuery(xp, yL, yR, rs(p), mid + 1, pr));
| ^~
| res
0_0_38691364_4106.cpp:7:29: error: 'max' was not declared in this scope
7 | if (yR > mid) res = max(res, subQuery(xp, yL, yR, rs(p), mid + 1, pr));
| ^~~
0_0_38691364_4106.cpp: In function 'int query(int, int, int, int, int, int, int)':
0_0_38691364_4106.cpp:12:64: error: 'n' was not declared in this scope
12 | if (xL <= pl && pr <= xR) return subQuery(p, yL, yR, 1, 0, n);
| ^
0_0_38691364_4106.cpp:17:52: error: 'ls' was not declared in this scope
17 | if (xL <= mid) res = query(xL, xR, yL, yR, ls(p), pl, mid);
| ^~
0_0_38691364_4106.cpp:18:60: error: 'rs' was not declared in this scope; did you mean 'res'?
18 | if (xR > mid) res = max(res, query(xL, xR, yL, yR, rs(p), mid + 1, pr));
| ^~
| res
0_0_38691364_4106.cpp:18:29: error: 'max' was not declared in this scope
18 | if (xR > mid) res = max(res, query(xL, xR, yL, yR, rs(p), mid + 1, pr));
| ^~~
|