Problem minimum
User usernamehere
Submission Time 2024-12-06 15:30:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:2:8: 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:13: error: ‘begin’ was not declared in this scope
3 | for (int i:A) m=min(m,i);
| ^
minimum.cpp:3:13: error: ‘end’ was not declared in this scope
minimum.cpp:3:18: error: ‘min’ was not declared in this scope
3 | for (int i:A) m=min(m,i);
| ^~~