Problem aliens_ioi
User Pan
Submission Time 2024-01-14 20:19:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

aliens_ioi.cpp: In function ‘long long int take_photos(ll, ll, ll, std::vector<long long int>, std::vector<int>)’:
aliens_ioi.cpp:66:51: error: no matching function for call to ‘min(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)’
66 | for (ll i=0; i<n; ++i) range[i]=mp(min(r[i], c[i]), max(r[i], c[i]));
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from aliens_ioi.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)’
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++