diff options
author | Federico Igne <undyamon@disroot.org> | 2023-12-09 11:56:38 +0100 |
---|---|---|
committer | Federico Igne <undyamon@disroot.org> | 2023-12-09 11:56:38 +0100 |
commit | 3735669ddf365d66006abb826494a935e623fa89 (patch) | |
tree | 2cbb9955aab51edb2f0db74d62359fd9cf9d9f05 /2023 | |
parent | 9cba3e782b8ff464fc94b10d9ed8737193659bcc (diff) | |
download | aoc-3735669ddf365d66006abb826494a935e623fa89.tar.gz aoc-3735669ddf365d66006abb826494a935e623fa89.zip |
feat(flake): code takes input file as CLI argument
Diffstat (limited to '2023')
-rw-r--r-- | 2023/flake.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
60 | { | 60 | { |
61 | int answer{}; | 61 | int answer{}; |
62 | 62 | ||
63 | std::ifstream input{ "resources/input_small.txt" }; | 63 | std::ifstream input{ argv[1] }; |
64 | if (input.is_open()) | 64 | if (input.is_open()) |
65 | { | 65 | { |
66 | std::string line; | 66 | std::string line; |