summaryrefslogtreecommitdiff
path: root/string/suffixAutomaton.cpp
diff options
context:
space:
mode:
authorNoobie99 <noob999noob999@gmail.com>2023-03-28 14:22:07 +0200
committerNoobie99 <noob999noob999@gmail.com>2023-03-28 14:22:07 +0200
commit3e1879de5b7c985cfaf730102fef1effb3e2051d (patch)
tree998a69602cf795d16a3ad1732c741edea89fdd78 /string/suffixAutomaton.cpp
parentfe5fa1141efeb7454c763dbd2645fb4ff04487a3 (diff)
fix
Diffstat (limited to 'string/suffixAutomaton.cpp')
-rw-r--r--string/suffixAutomaton.cpp2
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;