From 3735669ddf365d66006abb826494a935e623fa89 Mon Sep 17 00:00:00 2001 From: Federico Igne Date: Sat, 9 Dec 2023 11:56:38 +0100 Subject: feat(flake): code takes input file as CLI argument --- 2023/flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2023/flake.nix b/2023/flake.nix index 9971fc1..1586422 100644 --- a/2023/flake.nix +++ b/2023/flake.nix @@ -60,7 +60,7 @@ { int answer{}; - std::ifstream input{ "resources/input_small.txt" }; + std::ifstream input{ argv[1] }; if (input.is_open()) { std::string line; -- cgit v1.2.3