c++ get max length element in vector 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;