Problem | candies_ioi |
---|---|
User | ThePwo |
Submission Time | 2024-12-14 02:40:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
candies_ioi.cpp: In function ‘std::vector<int> distribute_candies(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)’:
candies_ioi.cpp:25:71: error: no matching function for call to ‘max(ll, int)’
25 | ans[cc[ptr].second] = max(pre[n + 1] - mx.first + cc[ptr].first, 0);
| ^
In file included from /usr/include/c++/9/vector:60,
from candies_ioi.h:1,
from candies_ioi.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)’
222 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: template argument deduction/substitution failed:
candies_ioi.cpp:25:71: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’)