diff options
Diffstat (limited to 'string/suffixAutomaton.cpp')
| -rw-r--r-- | string/suffixAutomaton.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/string/suffixAutomaton.cpp b/string/suffixAutomaton.cpp index 4cc2a92..291f760 100644 --- a/string/suffixAutomaton.cpp +++ b/string/suffixAutomaton.cpp @@ -17,7 +17,7 @@ struct SuffixAutomaton { void extend(int c) { int p = cur; - int cur = sz(st); + cur = sz(st); st.emplace_back(st[p].len + 1); for (; p != -1 && !st[p].next[c]; p = st[p].link) { st[p].next[c] = cur; |
