In file included from /usr/include/c++/10/bits/stl_algobase.h:71,
from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from clo.cpp:9:
/usr/include/c++/10/bits/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = std::array<int, 3>*; _Iterator2 = std::array<int, 3>*; _Compare = main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>]':
/usr/include/c++/10/bits/stl_algo.h:82:17: required from 'void std::__move_median_to_first(_Iterator, _Iterator, _Iterator, _Iterator, _Compare) [with _Iterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1924:34: required from '_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1958:38: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Size = long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1974:25: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:4892:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = std::array<int, 3>*; _Compare = main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>]'
clo.cpp:95:6: required from here
/usr/include/c++/10/bits/predefined_ops.h:156:30: error: no match for call to '(main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>) (std::array<int, 3>&, std::array<int, 3>&)'
156 | { return bool(_M_comp(*__it1, *__it2)); }
| ~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/predefined_ops.h:156:30: note: candidate: 'bool (*)(std::array<long long int, 3>, std::array<long long int, 3>)' (conversion)
/usr/include/c++/10/bits/predefined_ops.h:156:30: note: candidate expects 3 arguments, 3 provided
clo.cpp:93:26: note: candidate: 'main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>'
93 | sort(buy+1, buy+1+n, [](array<ll, 3> a, array<ll, 3> b){
| ^
clo.cpp:93:26: note: no known conversion for argument 1 from 'array<int,[...]>' to 'array<long long int,[...]>'
In file included from /usr/include/c++/10/bits/stl_algobase.h:71,
from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from clo.cpp:9:
/usr/include/c++/10/bits/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = std::array<int, 3>*; _Iterator2 = std::array<int, 3>*; _Compare = main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>]':
/usr/include/c++/10/bits/stl_algo.h:82:17: required from 'void std::__move_median_to_first(_Iterator, _Iterator, _Iterator, _Iterator, _Compare) [with _Iterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1924:34: required from '_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1958:38: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Size = long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1974:25: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:4892:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = std::array<int, 3>*; _Compare = main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>]'
clo.cpp:104:6: required from here
/usr/include/c++/10/bits/predefined_ops.h:156:30: error: no match for call to '(main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>) (std::array<int, 3>&, std::array<int, 3>&)'
156 | { return bool(_M_comp(*__it1, *__it2)); }
| ~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/predefined_ops.h:156:30: note: candidate: 'bool (*)(std::array<long long int, 3>, std::array<long long int, 3>)' (conversion)
/usr/include/c++/10/bits/predefined_ops.h:156:30: note: candidate expects 3 arguments, 3 provided
clo.cpp:102:28: note: candidate: 'main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>'
102 | sort(sold+1, sold+m+1, [](array<ll, 3> a, array<ll, 3> b) {
| ^
clo.cpp:102:28: note: no known conversion for argument 1 from 'array<int,[...]>' to 'array<long long int,[...]>'
In file included from /usr/include/c++/10/bits/stl_algobase.h:71,
from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from clo.cpp:9:
/usr/include/c++/10/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operator()(_Value&, _Iterator) [with _Value = std::array<int, 3>; _Iterator = std::array<int, 3>*; _Compare = main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>]':
/usr/include/c++/10/bits/stl_algo.h:1826:20: required from 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Val_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1854:36: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1886:25: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1977:31: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:4892:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = std::array<int, 3>*; _Compare = main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>]'
clo.cpp:95:6: required from here
/usr/include/c++/10/bits/predefined_ops.h:238:23: error: no match for call to '(main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>) (std::array<int, 3>&, std::array<int, 3>&)'
238 | { return bool(_M_comp(__val, *__it)); }
| ~~~~~~~^~~~~~~~~~~~~~
/usr/include/c++/10/bits/predefined_ops.h:238:23: note: candidate: 'bool (*)(std::array<long long int, 3>, std::array<long long int, 3>)' (conversion)
/usr/include/c++/10/bits/predefined_ops.h:238:23: note: candidate expects 3 arguments, 3 provided
clo.cpp:93:26: note: candidate: 'main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>'
93 | sort(buy+1, buy+1+n, [](array<ll, 3> a, array<ll, 3> b){
| ^
clo.cpp:93:26: note: no known conversion for argument 1 from 'array<int,[...]>' to 'array<long long int,[...]>'
In file included from /usr/include/c++/10/bits/stl_algobase.h:71,
from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from clo.cpp:9:
/usr/include/c++/10/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operator()(_Value&, _Iterator) [with _Value = std::array<int, 3>; _Iterator = std::array<int, 3>*; _Compare = main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>]':
/usr/include/c++/10/bits/stl_algo.h:1826:20: required from 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Val_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1854:36: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1886:25: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1977:31: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:4892:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = std::array<int, 3>*; _Compare = main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>]'
clo.cpp:104:6: required from here
/usr/include/c++/10/bits/predefined_ops.h:238:23: error: no match for call to '(main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>) (std::array<int, 3>&, std::array<int, 3>&)'
238 | { return bool(_M_comp(__val, *__it)); }
| ~~~~~~~^~~~~~~~~~~~~~
/usr/include/c++/10/bits/predefined_ops.h:238:23: note: candidate: 'bool (*)(std::array<long long int, 3>, std::array<long long int, 3>)' (conversion)
/usr/include/c++/10/bits/predefined_ops.h:238:23: note: candidate expects 3 arguments, 3 provided
clo.cpp:102:28: note: candidate: 'main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>'
102 | sort(sold+1, sold+m+1, [](array<ll, 3> a, array<ll, 3> b) {
| ^
clo.cpp:102:28: note: no known conversion for argument 1 from 'array<int,[...]>' to 'array<long long int,[...]>'
In file included from /usr/include/c++/10/bits/stl_algobase.h:71,
from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from clo.cpp:9:
/usr/include/c++/10/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = std::array<int, 3>*; _Value = std::array<int, 3>; _Compare = main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>]':
/usr/include/c++/10/bits/stl_heap.h:139:48: required from 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = std::array<int, 3>*; _Distance = long int; _Tp = std::array<int, 3>; _Compare = __gnu_cxx::__ops::_Iter_comp_val<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_heap.h:246:23: required from 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Distance = long int; _Tp = std::array<int, 3>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_heap.h:355:22: required from 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1666:23: required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1937:25: required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1953:27: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Size = long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1974:25: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:4892:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = std::array<int, 3>*; _Compare = main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>]'
clo.cpp:95:6: required from here
/usr/include/c++/10/bits/predefined_ops.h:194:23: error: no match for call to '(main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>) (std::array<int, 3>&, std::array<int, 3>&)'
194 | { return bool(_M_comp(*__it, __val)); }
| ~~~~~~~^~~~~~~~~~~~~~
/usr/include/c++/10/bits/predefined_ops.h:194:23: note: candidate: 'bool (*)(std::array<long long int, 3>, std::array<long long int, 3>)' (conversion)
/usr/include/c++/10/bits/predefined_ops.h:194:23: note: candidate expects 3 arguments, 3 provided
clo.cpp:93:26: note: candidate: 'main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>'
93 | sort(buy+1, buy+1+n, [](array<ll, 3> a, array<ll, 3> b){
| ^
clo.cpp:93:26: note: no known conversion for argument 1 from 'array<int,[...]>' to 'array<long long int,[...]>'
In file included from /usr/include/c++/10/bits/stl_algobase.h:71,
from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from clo.cpp:9:
/usr/include/c++/10/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = std::array<int, 3>*; _Value = std::array<int, 3>; _Compare = main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)>]':
/usr/include/c++/10/bits/stl_heap.h:139:48: required from 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = std::array<int, 3>*; _Distance = long int; _Tp = std::array<int, 3>; _Compare = __gnu_cxx::__ops::_Iter_comp_val<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_heap.h:246:23: required from 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Distance = long int; _Tp = std::array<int, 3>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_heap.h:355:22: required from 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1666:23: required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1937:25: required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1953:27: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Size = long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long int, 3>, std::array<long long int, 3>)> >]'
/usr/include/c++/10/bits/stl_algo.h:1974:25: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::array<int, 3>*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(std::array<long long