Problem | minimum |
---|---|
User | brat |
Submission Time | 2025-10-04 21:55:11 |
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_MAX’ was not declared in this scope
5 | int ans = 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++) {ans = min(ans, A[i]);}
| ^~~