quality.cpp:3:49: error: 'N' was not declared in this scope
3 | int rectangle(int R, int C, int H, int W, int Q[N][M]){
| ^
quality.cpp:3:52: error: 'M' was not declared in this scope
3 | int rectangle(int R, int C, int H, int W, int Q[N][M]){
| ^
quality.cpp: In function 'int rectangle(...)':
quality.cpp:4:15: error: 'R' was not declared in this scope
4 | int lo=0, hi=R*C;
| ^
quality.cpp:4:17: error: 'C' was not declared in this scope
4 | int lo=0, hi=R*C;
| ^
quality.cpp:6:40: error: 'Q' was not declared in this scope
6 | for (int j=0; j<C; j++) l [i+1][j+1]=Q[i][j];
| ^
quality.cpp:17:11: error: 'H' was not declared in this scope
17 | if(i>=H && j>=W) if (pref[i][j]-pref[i-H][j]-pref[i][j-W]+pref[i-H][j-W]<0) da=1;
| ^
quality.cpp:17:19: error: 'W' was not declared in this scope
17 | if(i>=H && j>=W) if (pref[i][j]-pref[i-H][j]-pref[i][j-W]+pref[i-H][j-W]<0) da=1;
| ^
quality.cpp:20:18: error: expected ';' before 'else'
20 | if(da) hi=mid-1
| ^
| ;
21 | else lo=mid;
| ~~~~
quality.cpp:10:17: warning: unused variable 'ans' [-Wunused-variable]
10 | long long int ans=1e9;
| ^~~