Problem | minimum |
---|---|
User | ngmh |
Submission Time | 2023-02-13 21:20:59 |
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:10: error: ‘INT_MAX’ was not declared in this scope
5 | int x = INT_MAX;
| ^~~~~~~
minimum.cpp:2:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
1 | #include "minimum.h"
+++ |+#include <climits>
2 | using namespace std;
minimum.cpp:6:33: error: ‘min’ was not declared in this scope
6 | for(int i = 0; i < N; i++) x = min(x, A[i]);
| ^~~