Problem | minimum |
---|---|
User | Batigol |
Submission Time | 2024-06-08 13:13:09 |
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:10: 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 /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
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);
| ^~~~~~~~~~~