From aea9dbe4c53e9ad15e5e2fb0403d8dce4116b211 Mon Sep 17 00:00:00 2001 From: Leon Vatthauer Date: Wed, 4 Dec 2024 13:29:14 +0100 Subject: [PATCH] typo --- 03/main.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/03/main.cc b/03/main.cc index ddecfb6..13c9c53 100644 --- a/03/main.cc +++ b/03/main.cc @@ -38,7 +38,7 @@ bool peekCheck (ifstream &input, char c) { return false; } -int day2(const char *path, bool extra = true) { +int day3(const char *path, bool extra = true) { ifstream input(path); int result = 0; char c; @@ -85,13 +85,13 @@ int day2(const char *path, bool extra = true) { } int main(int argc, char *argv[]) { - int result = day2("example", false); + int result = day3("example", false); cout << "example (without do)" << endl << result << endl; - result = day2("example", true); + result = day3("example", true); cout << "example (with do)" << endl << result << endl; - result = day2("input", false); + result = day3("input", false); cout << "input (without do)" << endl << result << endl; - result = day2("input", true); + result = day3("input", true); cout << "input (without do)" << endl << result << endl; return 0;