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)