diff --git a/day01cpp/main.cpp b/day01cpp/main.cpp index c1468167ebd6bd7c46c829f7bc33624a8c1878ee..75a92d8143e2e50cfbb63af52cc891c81b941e8a 100644 --- a/day01cpp/main.cpp +++ b/day01cpp/main.cpp @@ -1,4 +1,5 @@ #include <algorithm> +#include <cstdint> #include <fstream> #include <iostream> #include <ranges> @@ -8,7 +9,7 @@ void part_a() { std::ifstream data("data.txt"); std::string line; - int sum = 0; + uint32_t sum = 0; while (std::getline(data, line)) { int a = *std::ranges::find_if(line.begin(), line.end(), [](char c) {