quality.cpp: In function 'int rectangle(int, int, int, int, int (*)[3002])':
quality.cpp:6:13: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+10' to '2147483647' [-Woverflow]
6 | int l = 1e10, r = -1e10;
| ^~~~
quality.cpp:6:23: warning: overflow in conversion from 'double' to 'int' changes value from '-1.0e+10' to '-2147483648' [-Woverflow]
6 | int l = 1e10, r = -1e10;
| ^~~~~
quality.cpp:11:17: error: 'min' was not declared in this scope
11 | l = min(l, q[i][j]); r = max(r, q[i][j]);
| ^~~
quality.cpp:11:38: error: 'max' was not declared in this scope
11 | l = min(l, q[i][j]); r = max(r, q[i][j]);
| ^~~
quality.cpp:31:39: error: 's' was not declared in this scope
31 | for(int j = 1; j <= col; ++j) s[0][j] = 0;
| ^
quality.cpp:47:17: error: 'res' was not declared in this scope
47 | res = sum[x2][y2] - sum[x1 - 1][y2] - sum[x2][y1 - 1] + sum[x1 - 1][y1 - 1];
| ^~~