This commit is contained in:
Leon Vatthauer 2024-12-04 13:29:14 +01:00
parent 39e646dc04
commit aea9dbe4c5
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8

View file

@ -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;