From f435e9b5a6b9ea06c8dec2022cc9a8e78c1af428 Mon Sep 17 00:00:00 2001 From: Stedd Date: Sun, 1 Dec 2024 13:47:11 +0100 Subject: [PATCH] first attempt at the solution --- days/day01.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/days/day01.cpp b/days/day01.cpp index 004a53a..ab8f583 100644 --- a/days/day01.cpp +++ b/days/day01.cpp @@ -79,8 +79,8 @@ void day01::Run() std::vector col2; int sum = 0; - // std::ifstream input("input/day01.txt"); - std::ifstream input("input/day01short.txt"); + std::ifstream input("input/day01.txt"); + //std::ifstream input("input/day01short.txt"); if (!input) { @@ -109,4 +109,5 @@ void day01::Run() { sum += std::abs(col1[i] - col2[i]); } + std::cout << sum << '\n'; }