answer.code: In lambda function:
answer.code:37:26: error: no matching function for call to ‘end(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&)’
37 | auto dx = *prev(end(dd[x]));
| ~~~^~~~~~~
In file included from /usr/include/c++/13/bits/algorithmfwd.h:39,
from /usr/include/c++/13/bits/stl_algo.h:59,
from /usr/include/c++/13/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from answer.code:1:
/usr/include/c++/13/initializer_list:99:5: note: candidate: ‘template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)’
99 | end(initializer_list<_Tp> __ils) noexcept
| ^~~
/usr/include/c++/13/initializer_list:99:5: note: template argument deduction/substitution failed:
answer.code:37:26: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’
37 | auto dx = *prev(end(dd[x]));
| ~~~^~~~~~~
In file included from /usr/include/c++/13/string:53,
from /usr/include/c++/13/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52:
/usr/include/c++/13/bits/range_access.h:74:5: note: candidate: ‘template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)’
74 | end(_Container& __cont) -> decltype(__cont.end())
| ^~~
/usr/include/c++/13/bits/range_access.h:74:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&) [with _Container = long long int]’:
answer.code:37:26: required from here
/usr/include/c++/13/bits/range_access.h:74:48: error: request for member ‘end’ in ‘__cont’, which is of non-class type ‘long long int’
74 | end(_Container& __cont) -> decltype(__cont.end())
| ~~~~~~~^~~
/usr/include/c++/13/bits/range_access.h:85:5: note: candidate: ‘template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)’
85 | end(const _Container& __cont) -> decltype(__cont.end())
| ^~~
/usr/include/c++/13/bits/range_access.h:85:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/range_access.h: In substitution of ‘template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&) [with _Container = long long int]’:
answer.code:37:26: required from here
/usr/include/c++/13/bits/range_access.h:85:54: error: request for member ‘end’ in ‘__cont’, which is of non-class type ‘const long long int’
85 | end(const _Container& __cont) -> decltype(__cont.end())
| ~~~~~~~^~~
/usr/include/c++/13/bits/range_access.h:106:5: note: candidate: ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])’
106 | end(_Tp (&__arr)[_Nm]) noexcept
| ^~~
/usr/include/c++/13/bits/range_access.h:106:5: note: template argument deduction/substitution failed:
answer.code:37:26: note: mismatched types ‘_Tp [_Nm]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
37 | auto dx = *prev(end(dd[x]));
| ~~~^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:166:
/usr/include/c++/13/valarray:1243:5: note: candidate: ‘template<class _Tp> _Tp* std::end(valarray<_Tp>&)’
1243 | end(valarray<_Tp>& __va) noexcept
| ^~~
/usr/include/c++/13/valarray:1243:5: note: template argument deduction/substitution failed:
answer.code:37:26: note: mismatched types ‘std::valarray<_Tp>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
37 | auto dx = *prev(end(dd[x]));
| ~~~^~~~~~~
/usr/include/c++/13/valarray:1259:5: note: candidate: ‘template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)’
1259 | end(const valarray<_Tp>& __va) noexcept
| ^~~
/usr/include/c++/13/valarray:1259:5: note: template argument deduction/substitution failed:
answer.code:37:26: note: mismatched types ‘const std::valarray<_Tp>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
37 | auto dx = *prev(end(dd[x]));
| ~~~^~~~~~~
answer.code:38:26: error: no matching function for call to ‘end(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&)’
38 | auto dy = *prev(end(dd[y]));
| ~~~^~~~~~~
/usr/include/c++/13/initializer_list:99:5: note: candidate: ‘template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)’
99 | end(initializer_list<_Tp> __il...