Skip to content

Commit e56bd2f

Browse files
committed
fix test now
1 parent b026ea6 commit e56bd2f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/library_checker_aizu_tests/trees/shallowest_lib_checker_tree_path_composite.test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ int main() {
8787
for (int v : adj[cent]) {
8888
for (int i = 0; i < ssize(adj[v]); i++) {
8989
if (adj[v][i] == cent) {
90-
swap(weight[v][i], weight[v].back());
91-
weight[v].pop_back();
90+
weight[v].erase(begin(weight[v]) + i);
9291
break;
9392
}
9493
}

0 commit comments

Comments
 (0)