| Problem | evenorodd_ex |
|---|---|
| User | Tianrui |
| Submission Time | 2025-12-03 10:30:23 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
evenorodd_ex.cpp: In function ‘int main()’:
evenorodd_ex.cpp:19:16: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’?
19 | for (int v : x)
| ^
| std::begin
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from evenorodd_ex.cpp:1:
/usr/include/c++/9/bits/range_access.h:105:37: note: ‘std::begin’ declared here
105 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&);
| ^~~~~
evenorodd_ex.cpp:19:16: error: ‘end’ was not declared in this scope; did you mean ‘std::end’?
19 | for (int v : x)
|