Problem | potatosalad |
---|---|
User | Henries |
Submission Time | 2024-09-29 21:25:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:15:20: error: no match for ‘operator+’ (operand types are ‘std::vector<long long int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’} and ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’)
15 | v.erase(v.begin()+max_element(v.begin(),v.end()));
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __normal_iterator<[...],[...]>
| __normal_iterator<[...],[...]>
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from potatosalad.cpp:1:
/usr/include/c++/9/bi