From 0bf76092e65a0562475e9f6b93f958934fde5062 Mon Sep 17 00:00:00 2001 From: pakhomov Date: Mon, 26 May 2025 14:07:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B0=D1=80=D0=B3=D1=83=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index ca05a72..2306637 100644 --- a/main.cpp +++ b/main.cpp @@ -3,7 +3,7 @@ #include "histogram.h" #include "text.h" #include "svg.h" -#include "curl/include/curl/curl.h" +#include using namespace std; struct Input { @@ -33,8 +33,12 @@ Input input_data(istream& in, bool prompt) { return inp; } -int main() { +int main(int argc, char* argv[]) { curl_global_init(CURL_GLOBAL_ALL); + if (argc > 1){ + cerr << "argv[0] = " << argv[0] << "argc = " << argc; + return 0; + } auto in = input_data(cin, true); auto bins = make_histogram(in.numbers, in.bin_count); show_histogram_svg(bins);