Skip to content
Snippets Groups Projects
Commit e22a639a authored by Evy Storozhenko's avatar Evy Storozhenko
Browse files

include cstdint

parent 811f3eb1
No related branches found
No related tags found
No related merge requests found
#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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment