nicelines.cpp: In function 'void solve(int, int)':
nicelines.cpp:20:17: warning: overflow in conversion from 'long double' to 'int' changes value from '2.000000000001e+12l' to '2147483647' [-Woverflow]
20 | int a = INF + 1, b = INF + 1;
| ~~~~^~~
nicelines.cpp:20:30: warning: overflow in conversion from 'long double' to 'int' changes value from '2.000000000001e+12l' to '2147483647' [-Woverflow]
20 | int a = INF + 1, b = INF + 1;
| ~~~~^~~
nicelines.cpp:37:24: error: no matching function for call to 'max(long double, i64)'
37 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/13/vector:62,
from nice_lines.h:4,
from nicelines.cpp:1:
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
nicelines.cpp:37:24: note: deduced conflicting types for parameter 'const _Tp' ('long double' and 'i64' {aka 'long long int'})
37 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: template argument deduction/substitution failed:
nicelines.cpp:37:24: note: deduced conflicting types for parameter 'const _Tp' ('long double' and 'i64' {aka 'long long int'})
37 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/13/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from nicelines.cpp:2:
/usr/include/c++/13/bits/stl_algo.h:5795:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
5795 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/13/bits/stl_algo.h:5795:5: note: template argument deduction/substitution failed:
nicelines.cpp:37:24: note: mismatched types 'std::initializer_list<_Tp>' and 'long double'
37 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:5805:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
5805 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algo.h:5805:5: note: template argument deduction/substitution failed:
nicelines.cpp:37:24: note: mismatched types 'std::initializer_list<_Tp>' and 'long double'
37 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~~
nicelines.cpp:37:48: error: no matching function for call to 'min(const long double&, i64)'
37 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
233 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
nicelines.cpp:37:48: note: deduced conflicting types for parameter 'const _Tp' ('long double' and 'i64' {aka 'long long int'})
37 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: template argument deduction/substitution failed:
nicelines.cpp:37:48: note: deduced conflicting types for parameter 'const _Tp' ('long double' and 'i64' {aka 'long long int'})
37 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:5775:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
5775 | min(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/13/bits/stl_algo.h:5775:5: note: template argument deduction/substitution failed:
nicelines.cpp:37:48: note: mismatched types 'std::initializer_list<_Tp>' and 'long double'
37 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:5785:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
5785 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algo.h:5785:5: note: template argument deduction/substitution failed:
nicelines.cpp:37:48: note: mismatched types 'std::initializer_list<_Tp>' and 'long double'
37 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~
nicelines.cpp:65:24: error: no matching function for call to 'max(long double, i64)'
65 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
nicelines.cpp:65:24: note: deduced conflicting types for parameter 'const _Tp' ('long double' and 'i64' {aka 'long long int'})
65 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: template argument deduction/substitution failed:
nicelines.cpp:65:24: note: deduced conflicting types for parameter 'const _Tp' ('long double' and 'i64' {aka 'long long int'})
65 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:5795:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
5795 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/13/bits/stl_algo.h:5795:5: note: template argument deduction/substitution failed:
nicelines.cpp:65:24: note: mismatched types 'std::initializer_list<_Tp>' and 'long double'
65 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:5805:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
5805 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algo.h:5805:5: note: template argument deduction/substitution failed:
nicelines.cpp:65:24: note: mismatched types 'std::initializer_list<_Tp>' and 'long double'
65 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~~
nicelines.cpp:65:48: error: no matching function for call to 'min(const long double&, i64)'
65 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
233 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
nicelines.cpp:65:48: note: deduced conflicting types for parameter 'const _Tp' ('long double' and 'i64' {aka 'long long int'})
65 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: template argument deduction/substitution failed:
nicelines.cpp:65:48: note: deduced conflicting types for parameter 'const _Tp' ('long double' and 'i64' {aka 'long long int'})
65 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:5775:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
5775 | min(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/13/bits/stl_algo.h:5775:5: note: template argument deduction/substitution failed:
nicelines.cpp:65:48: note: mismatched types 'std::initializer_list<_Tp>' and 'long double'
65 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:5785:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
5785 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algo.h:5785:5: note: template argument deduction/substitution failed:
nicelines.cpp:65:48: note: mismatched types 'std::initializer_list<_Tp>' and 'long double'
65 | for(int i = max(-INF, lo - 3); i <= min(INF, hi + 3); i++){
| ~~~^~~~~~~~~~~~~