#include <vector>
int main() {
std::vector<int> vec(15);
vec.erase(vec.cbegin());
}
I2luY2x1ZGUgPHZlY3Rvcj4KCmludCBtYWluKCkgewoJc3RkOjp2ZWN0b3I8aW50PiB2ZWMoMTUpOwoJdmVjLmVyYXNlKHZlYy5jYmVnaW4oKSk7Cn0=
prog.cpp: In function 'int main()':
prog.cpp:5:24: error: no matching function for call to 'std::vector<int>::erase(std::vector<int>::const_iterator)'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/vector.tcc:133:5: note: candidates are: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >, typename std::vector<_Tp, _Alloc>::_Base::_Tp_alloc_type::pointer = int*]
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/vector.tcc:145:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::iterator) [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >, typename std::vector<_Tp, _Alloc>::_Base::_Tp_alloc_type::pointer = int*]