quality.cpp:18:51: error: declaration of 'Q' as multidimensional array must have bounds for all dimensions except the first
18 | bool check(int m, int R, int C, int H, int W, int Q[3001][])
| ^
quality.cpp: In function 'bool check(...)':
quality.cpp:20:27: error: 'R' was not declared in this scope
20 | vector<vector<int>> pref(R + 1, vector<int>(C + 1));
| ^
quality.cpp:20:46: error: 'C' was not declared in this scope
20 | vector<vector<int>> pref(R + 1, vector<int>(C + 1));
| ^
quality.cpp:23:73: error: 'Q' was not declared in this scope
23 | pref[i][j] = pref[i - 1][j] + pref[i][j - 1] - pref[i - 1][j - 1] + (Q[i - 1][j - 1] >= m);
| ^
quality.cpp:23:92: error: 'm' was not declared in this scope
23 | pref[i][j] = pref[i - 1][j] + pref[i][j - 1] - pref[i - 1][j - 1] + (Q[i - 1][j - 1] >= m);
| ^
quality.cpp:24:25: error: 'H' was not declared in this scope
24 | for (int i = 1; i <= R-H+1; ++i)
| ^
quality.cpp:25:26: error: 'W' was not declared in this scope
25 | for (int j = 1; j <= C-W+1; ++j)
| ^
quality.cpp: At global scope:
quality.cpp:31:47: error: declaration of 'Q' as multidimensional array must have bounds for all dimensions except the first
31 | int rectangle(int R, int C, int H, int W, int Q[3001][])
| ^
quality.cpp: In function 'int rectangle(...)':
quality.cpp:33:19: error: 'R' was not declared in this scope
33 | int lo = 1, hi = R*C;
| ^
quality.cpp:33:21: error: 'C' was not declared in this scope
33 | int lo = 1, hi = R*C;
| ^
quality.cpp:36:24: error: 'H' was not declared in this scope
36 | if (check(mid, R, C, H, W, Q))
| ^
quality.cpp:36:27: error: 'W' was not declared in this scope
36 | if (check(mid, R, C, H, W, Q))
| ^
quality.cpp:36:30: error: 'Q' was not declared in this scope
36 | if (check(mid, R, C, H, W, Q))
| ^