Problem | minimum |
---|---|
User | susboy |
Submission Time | 2024-05-10 19:26:12 |
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:14: error: ‘LLONG_MAX’ was not declared in this scope
5 | int mn = LLONG_MAX;
| ^~~~~~~~~
minimum.cpp:1:1: note: ‘LLONG_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
+++ |+#include <climits>
1 | using namespace std;
minimum.cpp:8:23: error: ‘a’ was not declared in this scope
8 | mn = min(mn , a[i]);
| ^
minimum.cpp:8:14: error: ‘min’ was not declared in this scope; did you mean ‘mn’?
8 | mn = min(mn , a[i]);
| ^~~
| mn