summaryrefslogtreecommitdiff
path: root/graph/kruskal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graph/kruskal.cpp')
-rw-r--r--graph/kruskal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graph/kruskal.cpp b/graph/kruskal.cpp
index 5b0e153..d21da01 100644
--- a/graph/kruskal.cpp
+++ b/graph/kruskal.cpp
@@ -1,6 +1,6 @@
sort(all(edges));
vector<edge> mst;
-int cost = 0;
+ll cost = 0;
for (edge& e : edges) {
if (findSet(e.from) != findSet(e.to)) {
unionSets(e.from, e.to);