#include void find_minmax(std::vector &numbers, double& min, double& max) { min = numbers[0]; max = numbers[0]; for (double x : numbers) { if (max < x) max = x; if (min > x) min = x; } }