From 6dda7b6e6aab18d1addbf1c7fa5dcc0b845ad765 Mon Sep 17 00:00:00 2001 From: "PARZIVAL (BreganIM)" Date: Mon, 14 Apr 2025 00:58:34 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D1=83=D0=B1=D1=80=D0=B0=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BB=D0=B8=D1=88=D0=BD=D1=8F=D1=8F=20=D1=81=D1=82=D1=80=D0=BE?= =?UTF-8?q?=D0=BA=D0=B0=20const?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laba01upd3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laba01upd3.cpp b/laba01upd3.cpp index e923c3c..01f5b51 100644 --- a/laba01upd3.cpp +++ b/laba01upd3.cpp @@ -65,7 +65,7 @@ vector make_histogram(const vector& numbers, size_t bin_count) { } void show_histogram_text(const vector& bins, size_t screen_width = SCREEN_WIDTH) { - const size_t MAX_ASTERISK = screen_width - 3 - 1; + size_t max_count = bins[0]; for (size_t count : bins) { if (count > max_count)