int ChooseVertex(const vector<int>& DL){
// given DL, return the vertex with minimum element
vector<int>::iterator min_DL;
min_DL = min_element(DL.begin(), DL.end());
return min_DL;
}
when i called the function like this
v = ChooseVertex(DL);
I got an error on line 4,
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::_Vector_const_iterator<_Ty,_Alloc>' (or there is no acceptable conversion)
Does anybody know the reason? Thank you in advance. :)