vector<int>arr {1, 34 , 50, 4, 400}; int maximumElement = *max_element(arr.begin(), arr.end()); int minimumElement = *min_element(arr.begin(), arr.end());