| Problem | minimum |
|---|---|
| User | itsLQ |
| Submission Time | 2024-05-17 00:35:28 |
| 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:10: error: ‘INT_MAX’ was not declared in this scope
2 | int M = 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:34: error: ‘min’ was not declared in this scope
3 | for (int i = 0; i < N; i++) M = min(M, A[i]);
| ^~~