From 6f1662469ba4f90bca7578bffb93a8f15fbcbbf7 Mon Sep 17 00:00:00 2001 From: EfremovSI Date: Sat, 20 Apr 2024 00:46:39 +0300 Subject: [PATCH] =?UTF-8?q?doc:=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D1=8B=D0=B5=20=D1=82=D0=B5=D1=81=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- histogram.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/histogram.cpp b/histogram.cpp index 7a6778a..48aa578 100644 --- a/histogram.cpp +++ b/histogram.cpp @@ -3,9 +3,11 @@ #include "histogram.h" using namespace std; + static void find_minmax(const vector& numbers, double& min, double& max) { min = numbers[0]; + max = numbers[0]; for (double x : numbers) { if (x < min) { min = x;