quality.cpp: In function 'int rectangle(int, int, int, int, int (*)[3002])':
quality.cpp:7:13: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+10' to '2147483647' [-Woverflow]
7 | int l = 1e10, r = -1e10;
| ^~~~
quality.cpp:7:23: warning: overflow in conversion from 'double' to 'int' changes value from '-1.0e+10' to '-2147483648' [-Woverflow]
7 | int l = 1e10, r = -1e10;
| ^~~~~
quality.cpp:12:17: error: 'min' was not declared in this scope
12 | l = min(l, q[i][j]); r = max(r, q[i][j]);
| ^~~
quality.cpp:12:17: note: suggested alternatives:
In file included from /usr/include/c++/13/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from quality.cpp:1:
/usr/include/c++/13/bits/stl_algo.h:5785:5: note: 'std::min'
5785 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
In file included from /usr/include/c++/13/bits/ranges_algo.h:39,
from /usr/include/c++/13/algorithm:63:
/usr/include/c++/13/bits/ranges_util.h:738:29: note: 'std::ranges::min'
738 | inline constexpr __min_fn min{};
| ^~~
quality.cpp:12:38: error: 'max' was not declared in this scope
12 | l = min(l, q[i][j]); r = max(r, q[i][j]);
| ^~~
quality.cpp:12:38: note: suggested alternatives:
/usr/include/c++/13/bits/stl_algo.h:5805:5: note: 'std::max'
5805 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/ranges_algo.h:2928:29: note: 'std::ranges::max'
2928 | inline constexpr __max_fn max{};
| ^~~