Problem | paint |
---|---|
User | Henries |
Submission Time | 2024-09-30 23:31:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
paint.cpp: In function ‘void solve(std::vector<long long int>, std::vector<long long int>)’:
paint.cpp:6:46: error: overloaded function with no contextual type information
6 | max = max_element(rates.begin(),rates.end());
| ^
paint.cpp:7:18: error: no matching function for call to ‘std::vector<long long int>::erase(<unresolved overloaded function type>)’
7 | rates.erase(max);
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from paint.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1427:7: note: candidate: ‘std::vector<_Tp, _Alloc>::iterator std::vector<_Tp