Fixed a bug in the 04.cpp

This commit is contained in:
2023-12-06 07:45:14 +01:00
parent 0f99dca6e1
commit b7c3a30691

View File

@ -9,7 +9,7 @@ using namespace std;
int main() { int main() {
ifstream input("input.txt"); ifstream input("input.txt");
int sums; int sums = 0;
for (string line; getline(input, line);) { for (string line; getline(input, line);) {
regex e("Card\\s*[0-9]+: (.*)"); regex e("Card\\s*[0-9]+: (.*)");
smatch m; smatch m;