Problem | minimum |
---|---|
User | Scissors264 |
Submission Time | 2024-08-13 18:23:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:3:12: error: ‘min_element’ was not declared in this scope; did you mean ‘std::min_element’?
3 | return min_element(A,A+N);
| ^~~~~~~~~~~
| std::min_element
In file included from /usr/include/c++/9/algorithm:71,
from minimum.cpp:1:
/usr/include/c++/9/pstl/glue_algorithm_defs.h:520:1: note: ‘std::min_element’ declared here
520 | min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last);
| ^~~~~~~~~~~