max_element vector example
Example 1: max of a vector c++
cout<<*max_element(a.begin(), a.end())<<endl;
Example 2: max element in vector c++
auto max = *max_element(vector.begin(), vector.end());
cout<<*max_element(a.begin(), a.end())<<endl;
auto max = *max_element(vector.begin(), vector.end());