From 0f7ce7a9f90e6ce5a74ca5f8a329a0ba31ec9156 Mon Sep 17 00:00:00 2001 From: Kyle Shores Date: Sun, 22 Dec 2024 21:25:18 -0600 Subject: [PATCH] reusing alias --- 2024/src/day22.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/2024/src/day22.cpp b/2024/src/day22.cpp index 3d8bfa9..7e733a3 100644 --- a/2024/src/day22.cpp +++ b/2024/src/day22.cpp @@ -7,7 +7,6 @@ #include #include #include -#include // Specialization of std::hash for std::array namespace std @@ -65,10 +64,10 @@ int64_t part1(const Data &data) return sum; } -using Changes = std::unordered_map, int>; +using Changes = std::unordered_map, int64_t>; int64_t part2(const Data &data) { - std::unordered_map, int64_t> global_sums; + Changes global_sums; for (size_t i = 0; i < data.values.size(); ++i) {