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;