max size of vector c++ code 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());