answer.code: In function ‘int main()’:
answer.code:82:23: error: no matching function for call to ‘clamp(long int&, long long int, ll&)’
82 | bl.first=clamp(bl.first, 1ll,w1);
| ~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/string:52,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from answer.code:1:
/usr/include/c++/11/bits/stl_algo.h:3656:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::clamp(const _Tp&, const _Tp&, const _Tp&)’
3656 | clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi)
| ^~~~~
/usr/include/c++/11/bits/stl_algo.h:3656:5: note: template argument deduction/substitution failed:
answer.code:82:23: note: deduced conflicting types for parameter ‘const _Tp’ (‘long int’ and ‘long long int’)
82 | bl.first=clamp(bl.first, 1ll,w1);
| ~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/string:52,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from answer.code:1:
/usr/include/c++/11/bits/stl_algo.h:3674:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr const _Tp& std::clamp(const _Tp&, const _Tp&, const _Tp&, _Compare)’
3674 | clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Compare __comp)
| ^~~~~
/usr/include/c++/11/bits/stl_algo.h:3674:5: note: template argument deduction/substitution failed:
answer.code:82:23: note: deduced conflicting types for parameter ‘const _Tp’ (‘long int’ and ‘long long int’)
82 | bl.first=clamp(bl.first, 1ll,w1);
| ~~~~~^~~~~~~~~~~~~~~~~~
answer.code:83:23: error: no matching function for call to ‘clamp(long int&, long long int, ll&)’
83 | tr.first=clamp(tr.first, 1ll,w1);
| ~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/string:52,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from answer.code:1:
/usr/include/c++/11/bits/stl_algo.h:3656:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::clamp(const _Tp&, const _Tp&, const _Tp&)’
3656 | clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi)
| ^~~~~
/usr/include/c++/11/bits/stl_algo.h:3656:5: note: template argument deduction/substitution failed:
answer.code:83:23: note: deduced conflicting types for parameter ‘const _Tp’ (‘long int’ and ‘long long int’)
83 | tr.first=clamp(tr.first, 1ll,w1);
| ~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/string:52,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from answer.code:1:
/usr/include/c++/11/bits/stl_algo.h:3674:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr const _Tp& std::clamp(const _Tp&, const _Tp&, const _Tp&, _Compare)’
3674 | clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Compare __comp)
| ^~~~~
/usr/include/c++/11/bits/stl_algo.h:3674:5: note: template argument deduction/substitution failed:
answer.code:83:23: note: deduced conflicting types for parameter ‘const _Tp’ (‘long int’ and ‘long long int’)
83 | tr.first=clamp(tr.first, 1ll,w1);
| ~~~~~^~~~~~~~~~~~~~~~~~