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