From dc8c2fbab9570710e1de0d1bc72714db86579a5f Mon Sep 17 00:00:00 2001 From: "Daniil (FilippovDY)" Date: Tue, 7 May 2024 21:52:47 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=BA=D0=BE=D1=80=D1=80=D0=B5=D0=BA?= =?UTF-8?q?=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doctest.h | 2 +- histogram.cpp | 1 + main.cpp | 3 ++- svg.cpp | 1 - 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doctest.h b/doctest.h index 5c754cd..ffbd34a 100644 --- a/doctest.h +++ b/doctest.h @@ -7082,7 +7082,7 @@ namespace detail { #ifdef DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSH(4007) // 'function' : must be 'attribute' - see issue #182 -int main(int argc, char** argv) { return doctest::Context(argc, argv).run(); } + DOCTEST_MSVC_SUPPRESS_WARNING_POP #endif // DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN diff --git a/histogram.cpp b/histogram.cpp index a54fe18..2d35027 100644 --- a/histogram.cpp +++ b/histogram.cpp @@ -1,5 +1,6 @@ #include "histogram.h" #include +#include "histogram_internal.h" void find_minmax(const std::vector &numbers, double &min, double &max, bool &res) { if (numbers.size()==0) diff --git a/main.cpp b/main.cpp index d4e7d58..8b6cb7c 100644 --- a/main.cpp +++ b/main.cpp @@ -31,9 +31,10 @@ int main() { bool res = false; - auto in = input_data(); + Input in = input_data(); auto bins = make_histogram(in.numbers, in.bin_count); show_histogram_svg(bins); + return 0; } diff --git a/svg.cpp b/svg.cpp index dbee47e..3669a33 100644 --- a/svg.cpp +++ b/svg.cpp @@ -1,5 +1,4 @@ #include -#include #include "svg.h" void