max element in vector int long long code example Example: maximum in vector *max_element(a.begin(), a.end());