Problem | minimum |
---|---|
User | Enderpotato |
Submission Time | 2024-01-28 00:12:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:6:18: error: ‘min’ was not declared in this scope; did you mean ‘std::min’?
6 | minInt = min(minInt, a[i]);
| ^~~
| std::min
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from minimum.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:246:5: note: ‘std::min’ declared here
246 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~