From 93d326c1e517ef0d2222fe632b6a1befea28f6cc Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Tue, 26 Dec 2023 16:25:48 +0100 Subject: besserer Name für die Variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/day22.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/day22.cpp') diff --git a/src/day22.cpp b/src/day22.cpp index 0ac5faf..71320f5 100644 --- a/src/day22.cpp +++ b/src/day22.cpp @@ -84,7 +84,7 @@ part1() long number = 0; for ( size_t idx = 0; idx != puzzle.size(); ++idx ) { - if ( all_of(supports[idx].begin(), supports[idx].end(), [&](const auto& item) { return supported_by[item].size() > 1; }) ) { + if ( all_of(supports[idx].begin(), supports[idx].end(), [&](const auto& idx2) { return supported_by[idx2].size() > 1; }) ) { ++number; } } -- cgit v1.3