how to find the first instance of maximum in a vector code example Example: maximum in vector *max_element(a.begin(), a.end());