Problem minimum
User Batigol
Submission Time 2024-06-08 13:13:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:2:12: error: ‘INT_MAX’ was not declared in this scope
2 | int res = 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(auto i:A){
| ^
minimum.cpp:3:13: error: ‘end’ was not declared in this scope
minimum.cpp:4:9: error: ‘min’ was not declared in this scope
4 | res = min(res, i);
| ^~~