From 5d4f2174233ec60cbabba1b7ce0357e363b349ce Mon Sep 17 00:00:00 2001 From: KorneevMA Date: Mon, 30 Sep 2024 07:36:29 +0300 Subject: [PATCH] showing errors --- main.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index 4936bda..5607cd3 100644 --- a/main.cpp +++ b/main.cpp @@ -42,10 +42,14 @@ Input input_data(istream& sin, bool prompt) int main(int argc, char* argv[]) { if (argc > 1) { - for (int x = 0; x > argc; x++) { - cout << "argv[" << x << "] = " << argv[x]; - } - return 0; + CURL* curl = curl_easy_init(); + auto res = curl_easy_perform(curl); + if (res != 0) { + cout << curl_easy_strerror(res); + exit(1); + } + curl_easy_cleanup(curl); + return 0; } Input in = input_data(cin, false); auto bins = make_histogram(in.numbers, in.bin_count);