function to find the maximum number from an vector in c++ code example Example: maximum in vector *max_element(a.begin(), a.end());