quality.cpp:9:47: error: declaration of 'q' as multidimensional array must have bounds for all dimensions except the first
9 | int rectangle(int r, int c, int h, int w, int q[][]) {
| ^
quality.cpp: In function 'int rectangle(...)':
quality.cpp:11:16: error: 'r' was not declared in this scope
11 | int high = r * c;
| ^
quality.cpp:11:20: error: 'c' was not declared in this scope
11 | int high = r * c;
| ^
quality.cpp:18:86: error: 'q' was not declared in this scope
18 | pref[i + 1][j + 1] = pref[i + 1][j] + pref[i][j + 1] - pref[i][j] + (q[i][j] >= mid);
| ^
quality.cpp:21:34: error: 'h' was not declared in this scope
21 | for (int i = 0; i <= r - h; i++) {
| ^
quality.cpp:22:38: error: 'w' was not declared in this scope
22 | for (int j = 0; j <= c - w; j++) {
| ^