typo
This commit is contained in:
parent
39e646dc04
commit
aea9dbe4c5
1 changed files with 5 additions and 5 deletions
10
03/main.cc
10
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;
|
||||
|
|
Loading…
Reference in a new issue