From 3e1879de5b7c985cfaf730102fef1effb3e2051d Mon Sep 17 00:00:00 2001 From: Noobie99 Date: Tue, 28 Mar 2023 14:22:07 +0200 Subject: fix --- string/suffixAutomaton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string') 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; -- cgit v1.2.3