Problem minimum
User NoobMugger420
Submission Time 2024-10-31 23:57:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(unsigned int, unsigned int*)’:
minimum.cpp:6:24: error: ‘begin’ was not declared in this scope
6 | for(unsigned int i : A) minimum = min(i, minimum);
| ^
minimum.cpp:1:1: note: ‘std::begin’ is defined in header ‘<iterator>’; did you forget to ‘#include <iterator>’?
+++ |+#include <iterator>
1 | using namespace std;
minimum.cpp:6:24: error: ‘end’ was not declared in this scope
6 | for(unsigned int i : A) minimum = min(i, minimum);
| ^
minimum.cpp:6:24: note: ‘std::end’ is defined in header ‘<iterator>’; did you forget to ‘#include <iterator>’?
minimum.cpp:6:37: error: ‘min’ was not declared in this scope
6 | for(unsigned int i : A) minimum = min(i, minimum);
| ^~~