ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:33:16: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
33 | for (int& i : x)
| ^
| std::begin
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from ricehub.cpp:2:
/usr/include/c++/10/bits/range_access.h:108:37: note: 'std::begin' declared here
108 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&);
| ^~~~~
ricehub.cpp:33:16: error: 'end' was not declared in this scope; did you mean 'std::end'?
33 | for (int& i : x)
| ^
| std::end
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from ricehub.cpp:2:
/usr/include/c++/10/bits/range_access.h:110:37: note: 'std::end' declared here
110 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&);
| ^~~