From bb5838b2e6508175a860b11e7dd0759cc35f015d Mon Sep 17 00:00:00 2001 From: subcrip Date: Sun, 19 May 2024 13:16:15 +0800 Subject: [PATCH] Update graph/mcmf.cc Signed-off-by: subcrip --- graph/mcmf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph/mcmf.cc b/graph/mcmf.cc index cbb0221..2c28957 100644 --- a/graph/mcmf.cc +++ b/graph/mcmf.cc @@ -28,7 +28,7 @@ struct mcmf { while (f) { f = 0; for (int i = 0; i < n; ++i) { - for (auto&& [to, cap, flow, cost, rev] : edges[i]) { + for (auto&& [to, cap, flow, cost, rev, mark] : edges[i]) { if (cap > flow and dis[to] > dis[i] + cost) { dis[to] = dis[i] + cost; f = 1;