diff options
| author | Thomas Schmucker <ts@its1.de> | 2024-01-02 20:23:16 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2024-01-02 20:23:16 +0100 |
| commit | 1c2555b3574b9498347b8254ec5be90d9e0015f8 (patch) | |
| tree | f43a5e8dc523af49cdd5a2c7389a3977b0da9c88 /src/day16.cpp | |
| parent | e95d22d3927549caa5c259a59aedaa67d3b636ca (diff) | |
| download | advent-of-code-1c2555b3574b9498347b8254ec5be90d9e0015f8.tar.gz advent-of-code-1c2555b3574b9498347b8254ec5be90d9e0015f8.tar.bz2 advent-of-code-1c2555b3574b9498347b8254ec5be90d9e0015f8.zip | |
clean up
Diffstat (limited to 'src/day16.cpp')
| -rw-r--r-- | src/day16.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/day16.cpp b/src/day16.cpp index c2cd365..93c7479 100644 --- a/src/day16.cpp +++ b/src/day16.cpp | |||
| @@ -44,9 +44,7 @@ solve(const vector<string>& lines, tuple<size_t, size_t, unsigned int> start) | |||
| 44 | positions.emplace(start); | 44 | positions.emplace(start); |
| 45 | 45 | ||
| 46 | while ( !positions.empty() ) { | 46 | while ( !positions.empty() ) { |
| 47 | auto row = get<0>(positions.front()); | 47 | auto [row, col, dir] = positions.front(); |
| 48 | auto col = get<1>(positions.front()); | ||
| 49 | auto dir = get<2>(positions.front()); | ||
| 50 | positions.pop(); | 48 | positions.pop(); |
| 51 | 49 | ||
| 52 | while ( true ) { | 50 | while ( true ) { |
