Problem | minimum |
---|---|
User | asdiml |
Submission Time | 2023-01-11 23:04:05 |
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:12: error: ‘INT_MIN’ was not declared in this scope
2 | int Min = INT_MIN;
| ^~~~~~~
minimum.cpp:1:1: note: ‘INT_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
+++ |+#include <climits>
1 | int findMin(int N, int A[]){
minimum.cpp:3:31: error: ‘min’ was not declared in this scope; did you mean ‘Min’?
3 | for(int i=0; i<N; i++) Min = min(Min, A[i]);
| ^~~
| Min