Problem | bestplace |
---|---|
User | dminh |
Submission Time | 2023-02-25 01:39:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bestplace.cpp: In function ‘int main()’:
bestplace.cpp:10:26: error: no matching function for call to ‘min_element(std::vector<long long int>&)’
10 | cout<<(*min_element(a)+*max_element(a))/n<<" "<<(*min_element(b)+*max_element(b))/n;
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from bestplace.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:5649:12: note: candidate: ‘template<class _FIter> constexpr _FIter std::min_element(_FIter, _FIter)’
5649 | inline min_element(_ForwardIterator __first, _ForwardIterator __last)
| ^~~~~~~~~~~
/usr/include/c++/9/bits/stl_algo.h:5649:12: note: template argument deduction/substitution failed:
bestplace.cpp:10:26: note: candidate expects 2 arguments, 1 provided
10 | cout<<(*min_element(a)+*max_element(a))/n<<