diff --git a/3/puzzle3.cpp b/3/puzzle3.cpp index f7bdcff..c8e29df 100644 --- a/3/puzzle3.cpp +++ b/3/puzzle3.cpp @@ -7,10 +7,18 @@ using namespace std; int main(int argc, char const *argv[]) -{ +{ + ifstream puzzle("puzzleInput", ifstream::in); + if(!puzzle){ + return 1; + } + + //regex + regex regexToSearch("(mul\(\d+,\d+\))") + string line; while (getline(puzzle, line)) {