Problem | minimum |
---|---|
User | TheInvadr |
Submission Time | 2023-01-05 21:11:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:4:13: error: ‘min_element’ was not declared in this scope; did you mean ‘std::min_element’?
4 | 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);
| ^~~~~~~~~~~