You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
733 B

#include <iostream>
#include <utility>
#include <string>
#include "solutions.hpp"
using namespace std;
int main() {
auto x = solve1;
auto answer = x(cin);
cout << "Solution 1: " << answer.first << endl;
cout << "Solution 2: " << answer.second << endl;
return 0;
}
//istream get_input() {
// CURL *curl;
// CURLcode res;
//
// char url[44] = {0};
// sprintf(url, "https://adventofcode.com/2020/day/%d/input");
//
// curl_global_init(CURL_GLOBAL_ALL);
// curl = curl_easy_init();
// curl_easy_setopt(curl, CURLOPT_URL, "https://adventofcode.com/2020/day/1/input");
// curl_easy_setopt(curl, CURLOPT_URL, "https://adventofcode.com/2020/day/1/input");
//
// curl_global_cleanup();
//}