Problem | minimum |
---|---|
User | asdiml |
Submission Time | 2023-01-11 23:06:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:5:12: error: ‘INT_MIN’ was not declared in this scope
5 | int Min = INT_MIN;
| ^~~~~~~
minimum.cpp:2:1: note: ‘INT_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
1 | #include "minimum.h"
+++ |+#include <climits>
2 | using namespace std;
minimum.cpp:6:31: error: ‘min’ was not declared in this scope; did you mean ‘Min’?
6 | for(int i=0; i<N; i++) Min = min(Min, A[i]);
| ^~~
| Min