Problem | minimum |
---|---|
User | neuneuneuneuneu |
Submission Time | 2024-05-22 22:32:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:7:25: error: no matching function for call to ‘min_element(int*&)’
7 | return min_element(A);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from minimum.cpp:2:
/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:
minimum.cpp:7:25: note: candidate expects 2 arguments, 1 provided
7 | return min_element(A);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_6