|
|
|
@ -44,13 +44,17 @@ int main(int argc, char* argv[])
|
|
|
|
|
|
|
|
|
|
if(curl) {
|
|
|
|
|
CURLcode res;
|
|
|
|
|
curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
|
|
|
|
|
curl_easy_setopt(curl, CURLOPT_URL, argv[0]);
|
|
|
|
|
res = curl_easy_perform(curl);
|
|
|
|
|
if (res!=CURLE_OK){
|
|
|
|
|
cerr << curl_easy_strerror(res);
|
|
|
|
|
exit(1);
|
|
|
|
|
}
|
|
|
|
|
curl_easy_cleanup(curl);
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
Input in = input_data(cin, false);
|
|
|
|
|
Input in = input_data(cin, true);
|
|
|
|
|
vector<size_t> bins = make_histogram(in.numbers, in.bin_count);
|
|
|
|
|
show_histogram_svg(bins);
|
|
|
|
|
|
|
|
|
|