From 17079b55427f4c2d6729f8e1a0500c19d7f1205c Mon Sep 17 00:00:00 2001 From: Benjamin Kraft Date: Thu, 1 Dec 2022 13:35:10 +0100 Subject: [PATCH] updated for 2022 --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 6806923..87a70ff 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,7 +15,7 @@ Input getInput(int day, std::string key, bool useTestInput) { if (key.empty()) return input; std::string dayStr = std::to_string(day); - std::string url = "https://adventofcode.com/2021/day/" + dayStr + "/input"; + std::string url = "https://adventofcode.com/2022/day/" + dayStr + "/input"; std::cout << "Input does not exist. Fetching from " + url << std::endl; std::ofstream file(localFilePath); file << cpr::Get(cpr::Url{url}, cpr::Cookies{{"session", key}}).text;