ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:40:14: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
40 | for(auto u: X) fred.push_back(u);
| ^
| std::begin
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from ricehub.cpp:1:
/usr/include/c++/10/valarray:1224:5: note: 'std::begin' declared here
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
ricehub.cpp:40:14: error: 'end' was not declared in this scope; did you mean 'std::end'?
40 | for(auto u: X) fred.push_back(u);
| ^
| std::end
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from ricehub.cpp:1:
/usr/include/c++/10/valarray:1244:5: note: 'std::end' declared here
1244 | end(const valarray<_Tp>& __va)
| ^~~