Problem | minimum |
---|---|
User | maximushartanto |
Submission Time | 2025-05-06 08:59:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:2:14: error: ‘INT_MAX’ was not declared in this scope
2 | int mn = INT_MAX;
| ^~~~~~~
minimum.cpp:1:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
+++ |+#include <climits>
1 | int findMin(int N, int A[]){
minimum.cpp:3:26: error: ‘a’ was not declared in this scope
3 | for (const auto& x :a){
| ^
minimum.cpp:4:14: error: ‘min’ was not declared in this scope; did you mean ‘mn’?
4 | mn = min(mn, x);
| ^~~
| mn