Problem minimum
User chickengoat
Submission Time 2025-11-30 20:58:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘long long int findMin(int, long long int*)’:
minimum.cpp:5:26: error: ‘LLONG_MAX’ was not declared in this scope
5 | long long rangemin = LLONG_MAX;
| ^~~~~~~~~
minimum.cpp:2:1: note: ‘LLONG_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
1 | #include "minimum.h"
+++ |+#include <climits>
2 | using namespace std;
minimum.cpp:7:20: error: ‘min’ was not declared in this scope
7 | rangemin = min(rangemin, A[i]);
| ^~~