From b7c3a306915ec6d152a7f5ec4f62df093432e623 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Wed, 6 Dec 2023 07:45:14 +0100 Subject: [PATCH] Fixed a bug in the 04.cpp --- aoc/04.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aoc/04.cpp b/aoc/04.cpp index 88449cd..6d6e33f 100644 --- a/aoc/04.cpp +++ b/aoc/04.cpp @@ -9,7 +9,7 @@ using namespace std; int main() { ifstream input("input.txt"); - int sums; + int sums = 0; for (string line; getline(input, line);) { regex e("Card\\s*[0-9]+: (.*)"); smatch m;