quality.cpp:5:44: error: declaration of 'grid' as multidimensional array must have bounds for all dimensions except the first
5 | int rectangle(int n,int m,int H,int W, int grid[][]){
| ^~~~
quality.cpp: In function 'int rectangle(...)':
quality.cpp:6:22: error: 'n' was not declared in this scope
6 | int l=1, r = n * m;
| ^
quality.cpp:6:26: error: 'm' was not declared in this scope
6 | int l=1, r = n * m;
| ^
quality.cpp: In lambda function:
quality.cpp:13:44: error: 'grid' was not declared in this scope
13 | int cur = (grid[i][j] <= mid ? 1 : -1);
| ^~~~
quality.cpp:20:30: error: 'H' was not declared in this scope
20 | for (int i = H-1; i < n; i++) {
| ^
quality.cpp:21:38: error: 'W' was not declared in this scope
21 | for (int j = W-1; j < m; j++) {
| ^