From e22a639a5787840df545a6b409ec4f69fd6b2b58 Mon Sep 17 00:00:00 2001 From: Evy Garden <julian.storozhenko@tu-dortmund.de> Date: Sat, 2 Dec 2023 14:02:27 +0100 Subject: [PATCH] include cstdint --- day01cpp/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/day01cpp/main.cpp b/day01cpp/main.cpp index c146816..75a92d8 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) { -- GitLab