summaryrefslogtreecommitdiff
path: root/string/trie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'string/trie.cpp')
-rw-r--r--string/trie.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/trie.cpp b/string/trie.cpp
index f112e1e..0544a9f 100644
--- a/string/trie.cpp
+++ b/string/trie.cpp
@@ -11,7 +11,7 @@ int insert(vector<int>& word) {
for (int c : word) {
trie[id].words++;
if (trie[id].children[c] < 0) {
- trie[id].children[c] = trie.size();
+ trie[id].children[c] = sz(trie);
trie.emplace_back();
}
id = trie[id].children[c];