From fcc08e070f2b9a889bdf2846fe414f509a8fb5cd Mon Sep 17 00:00:00 2001 From: Ariel Date: Tue, 30 Jan 2024 22:07:43 +0800 Subject: [PATCH] Update treap.hh --- trees/treap.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trees/treap.hh b/trees/treap.hh index 2d38ec8..b4dc433 100644 --- a/trees/treap.hh +++ b/trees/treap.hh @@ -86,7 +86,7 @@ public: void clear() { _size = root = cnt = 0; - fill(fhq.begin(), fhq.end(), {}); + fill(fhq.begin(), fhq.end(), Node()); } void insert(value_type val) {