diff options
| author | Thomas Schmucker <ts@its1.de> | 2023-12-26 16:25:48 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2023-12-26 16:25:48 +0100 |
| commit | 93d326c1e517ef0d2222fe632b6a1befea28f6cc (patch) | |
| tree | f5c0bc468d7074541cf0fae8945f831252d492a2 | |
| parent | 64a43bcf7657c612f2d7bb0099610d59bf2a7b97 (diff) | |
| download | advent-of-code-93d326c1e517ef0d2222fe632b6a1befea28f6cc.tar.gz advent-of-code-93d326c1e517ef0d2222fe632b6a1befea28f6cc.tar.bz2 advent-of-code-93d326c1e517ef0d2222fe632b6a1befea28f6cc.zip | |
besserer Name für die Variable
| -rw-r--r-- | src/day22.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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() | |||
| 84 | 84 | ||
| 85 | long number = 0; | 85 | long number = 0; |
| 86 | for ( size_t idx = 0; idx != puzzle.size(); ++idx ) { | 86 | for ( size_t idx = 0; idx != puzzle.size(); ++idx ) { |
| 87 | if ( all_of(supports[idx].begin(), supports[idx].end(), [&](const auto& item) { return supported_by[item].size() > 1; }) ) { | 87 | if ( all_of(supports[idx].begin(), supports[idx].end(), [&](const auto& idx2) { return supported_by[idx2].size() > 1; }) ) { |
| 88 | ++number; | 88 | ++number; |
| 89 | } | 89 | } |
| 90 | } | 90 | } |
