#include#includeusing namespace std;int main(){int arr[] = {1,9,4,7,2};auto [mi,ma] = minmax(begin(arr),end(arr));cout << mi << " " << ma;return 0;}