Problem minimum
User rajatshenoi
Submission Time 2023-01-17 15:30:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:6:13: error: ‘INT_MAX’ was not declared in this scope
6 | int mini = 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 |
minimum.cpp:11:11: error: ‘min’ was not declared in this scope; did you mean ‘mini’?
11 | mini = min(mini, A[i]);
| ^~~
| mini