Dear All
I have a vector that has several elements with same greatest value. If I try with max_element he will return only iterator that point on the first element of vector with the greatest value. But I want to erase all elements in the second vector that are on the same position as alements with the greatest value of the first vector.
I have tried with loop, but I could only get integer or indexes with which I cannot erase elements of the second vector.
Thank you