answer.code: In function ‘std::array<int, 200000> distribute_candies(int*, int*, int*, int*)’:
answer.code:7:16: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’?
7 | for(auto i:c){
| ^
| std::begin
In file included from /usr/include/c++/13/string:53,
from /usr/include/c++/13/bits/locale_classes.h:40,
from /usr/include/c++/13/bits/ios_base.h:41,
from /usr/include/c++/13/ios:44,
from /usr/include/c++/13/ostream:40,
from /usr/include/c++/13/iostream:41,
from answer.code:1:
/usr/include/c++/13/bits/range_access.h:114:37: note: ‘std::begin’ declared here
114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
| ^~~~~
answer.code:7:16: error: ‘end’ was not declared in this scope; did you mean ‘std::end’?
7 | for(auto i:c){
| ^
| std::end
/usr/include/c++/13/bits/range_access.h:116:37: note: ‘std::end’ declared here
116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
| ^~~
answer.code:10:16: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’?
10 | for(auto i:v){
| ^
| std::begin
/usr/include/c++/13/bits/range_access.h:114:37: note: ‘std::begin’ declared here
114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
| ^~~~~
answer.code:10:16: error: ‘end’ was not declared in this scope; did you mean ‘std::end’?
10 | for(auto i:v){
| ^
| std::end
/usr/include/c++/13/bits/range_access.h:116:37: note: ‘std::end’ declared here
116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
| ^~~
answer.code:28:16: error: expected primary-expression before ‘]’ token
28 | return arr[];
| ^