quality.cpp: In function 'int rectangle(int, int, int, int, int (*)[3001])':
quality.cpp:7:9: error: 'i' was not declared in this scope
7 | for(i=1;i<=r;i++){
| ^
quality.cpp:8:13: error: 'j' was not declared in this scope
8 | for(j=1;j<=c;j++){
| ^
quality.cpp:12:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
12 | st=0;dr=r*c;ans=r*c;
| ^~~
| abs
quality.cpp:17:13: error: 'i' was not declared in this scope
17 | for(i=1;i<=r;i++){
| ^
quality.cpp:19:17: error: 'j' was not declared in this scope
19 | for(j=1;j<=c;j++){
| ^
quality.cpp:30:13: error: 'i' was not declared in this scope
30 | for(i=1;i<=r-h+1;i++){
| ^
quality.cpp:31:17: error: 'j' was not declared in this scope
31 | for(j=0;j<c-w+1;j++){
| ^