Skip to content

Commit 6961839

Browse files
committed
fix
1 parent ca76225 commit 6961839

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

library/data_structures/dsu/dsu.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ struct dsu {
77
bool join(int a, int b) {
88
if ((a = go(a)) == (b = go(b))) return 0;
99
if (e[a] > e[b]) swap(a, b);
10-
return e[a] += e[b], e[b] = a;
10+
return e[a] += e[b], e[b] = a, 1;
1111
}
1212
};

tests/.config/.cppcheck_suppression_list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ syntaxError:../library/trees/lca_rmq/iterate_subtree.hpp:6
4242
knownConditionTrueFalse:../library/strings/suffix_array/suffix_array.hpp:62
4343
knownConditionTrueFalse:../library/strings/suffix_array/suffix_array_short.hpp:29
4444
knownConditionTrueFalse:../library/data_structures/dsu/kruskal_tree.hpp:15
45+
knownConditionTrueFalse:../library/data_structures/dsu/dsu.hpp:10
4546
constVariable:../kactl/content/numerical/NumberTheoreticTransform.h:30
4647
constVariable:../kactl/content/graph/CompressTree.h:20
4748
constVariableReference:../kactl/content/graph/CompressTree.h:20

0 commit comments

Comments
 (0)