diff --git a/2022/16.cpp b/2022/16.cpp index c5f8696..06f4ef5 100644 --- a/2022/16.cpp +++ b/2022/16.cpp @@ -63,7 +63,7 @@ auto ShortestDistances(distance_array & dist) -> void for (auto const j : range) { auto const d_ikj = dist[i][k] + dist[k][j]; auto & d_ij = dist[i][j]; - if (d_ij > d_ikj) d_ij = d_ijk; + if (d_ij > d_ikj) d_ij = d_ikj; } } }