Problem | minimum |
---|---|
User | ml11109 |
Submission Time | 2024-05-24 16:40:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:6:17: error: ‘begin’ was not declared in this scope
6 | for (int i: A) {
| ^
minimum.cpp:2:1: note: ‘std::begin’ is defined in header ‘<iterator>’; did you forget to ‘#include <iterator>’?
1 | #include "minimum.h"
+++ |+#include <iterator>
2 | using namespace std;
minimum.cpp:6:17: error: ‘end’ was not declared in this scope
6 | for (int i: A) {
| ^
minimum.cpp:6:17: note: ‘std::end’ is defined in header ‘<iterator>’; did you forget to ‘#include <iterator>’?