From ced73de2f7cf5c5cacf5f7f1088ec94d4320cd73 Mon Sep 17 00:00:00 2001 From: ShinkarenkoVA Date: Mon, 20 May 2024 14:59:58 +0300 Subject: [PATCH] =?UTF-8?q?build:=20=D0=BF=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E?= =?UTF-8?q?=D1=87=D0=B8=D0=BB=D0=B8=20cURL=20=D0=BA=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=B5=D0=BA=D1=82=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.cpp b/main.cpp index a2a2b2e..47b66ca 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,5 @@ +#include + #include #include #include @@ -6,6 +8,7 @@ #include "histogram.h" #include "text.h" #include "svg01.h" + using namespace std; struct Input { @@ -16,6 +19,7 @@ struct Input { Input input_data(istream& in, bool prompt){ + size_t number_count; if (prompt){ cerr << "Enter number count: "; @@ -31,6 +35,7 @@ input_data(istream& in, bool prompt){ for (size_t i=0; i < number_count; i++) { in >> iinn.numbers[i]; + } if (prompt){ @@ -43,6 +48,7 @@ input_data(istream& in, bool prompt){ int main() { + curl_global_init(CURL_GLOBAL_ALL); Input iinn = input_data(cin, true); std::vector bins = make_histogram(iinn.numbers, iinn.bin_count);