Problem | minimum |
---|---|
User | popperoni |
Submission Time | 2023-11-20 23:28:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp:5:20: error: ‘array’ has not been declared
5 | int findMin(int a, array<int> b[a]) {
| ^~~~~
minimum.cpp:5:25: error: expected ‘,’ or ‘...’ before ‘<’ token
5 | int findMin(int a, array<int> b[a]) {
| ^
minimum.cpp: In function ‘int findMin(int, int)’:
minimum.cpp:6:16: error: ‘b’ was not declared in this scope
6 | return min(b);
| ^
minimum.cpp:6:12: error: ‘min’ was not declared in this scope; did you mean ‘std::min’?
6 | return min(b);
| ^~~
| std::min
In file included from /usr/include/c++/9/algorithm:62,
from minimum.cpp:3:
/usr/include/c++/9/bits/stl_algo.h:3456:5: note: ‘std::min’ declared here
3456 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~