diff options
Diffstat (limited to 'string/trie.cpp')
| -rw-r--r-- | string/trie.cpp | 2 |
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]; |
