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

include cstdint

parent 811f3eb1
Branches
No related tags found
No related merge requests found
#include <algorithm> #include <algorithm>
#include <cstdint>
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <ranges> #include <ranges>
...@@ -8,7 +9,7 @@ ...@@ -8,7 +9,7 @@
void part_a() { void part_a() {
std::ifstream data("data.txt"); std::ifstream data("data.txt");
std::string line; std::string line;
int sum = 0; uint32_t sum = 0;
while (std::getline(data, line)) { while (std::getline(data, line)) {
int a = *std::ranges::find_if(line.begin(), line.end(), [](char c) { 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