candies.cpp: In function 'std::vector<int> distribute_candies(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
candies.cpp:19:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
19 | s[i]=max(c[i],s[i]+v[j]);
| ^~~
| std::max
In file included from /usr/include/c++/10/vector:60,
from candies.h:1,
from candies.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: 'std::max' declared here
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
candies.cpp:21:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
21 | s[i]=max(c[i],s[i]+v[j]);
| ^~~
| std::max
In file included from /usr/include/c++/10/vector:60,
from candies.h:1,
from candies.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: 'std::max' declared here
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
candies.cpp:34:3: error: 'reverse' was not declared in this scope
34 | reverse(s.begin(),s.end());
| ^~~~~~~