From cf51ce2dd17d2c6bdf262bf5f60b5fe4f87da9f7 Mon Sep 17 00:00:00 2001 From: Feiko Wielsma Date: Sat, 13 Dec 2025 12:35:10 +0000 Subject: [PATCH] Day8 --- day8/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/day8/main.cpp b/day8/main.cpp index b57022d..dcbdea8 100644 --- a/day8/main.cpp +++ b/day8/main.cpp @@ -149,8 +149,9 @@ static auto doTheThing(const std::vector &pointVec, int numberToTake) -> auto main() -> int { auto testCase = parseInput("test_input"); if (testCase) { + constexpr int TEST_PUZZLE_TAKE = 10; - auto testResult = doTheThing(*testCase, 10); + auto testResult = doTheThing(*testCase, TEST_PUZZLE_TAKE); std::println("P1 Testcase result: {}", testResult); // auto testResultP2 = treePartTwo(*testCase); @@ -161,10 +162,11 @@ auto main() -> int { auto realPuzzle = parseInput("puzzle_input"); if (realPuzzle) { - // auto realResult = doTheThing(*realPuzzle, 1000); + constexpr int REAL_PUZZLE_TAKE = 1000; + // auto realResult = doTheThing(*realPuzzle, REAL_PUZZLE_TAKE); // std::println("P1 Real result: {}", realResult); - auto realResultP2 = doTheThing(*realPuzzle, 1000); + auto realResultP2 = doTheThing(*realPuzzle, REAL_PUZZLE_TAKE); std::println("P2 Real result: {}", realResultP2); } else { std::print("{}\n", realPuzzle.error());