diff --git a/_posts/2024-05-27-suffix-automaton-instead-of-suffix-array-2.md b/_posts/2024-05-27-suffix-automaton-instead-of-suffix-array-2.md index 7328f669..46abe197 100644 --- a/_posts/2024-05-27-suffix-automaton-instead-of-suffix-array-2.md +++ b/_posts/2024-05-27-suffix-automaton-instead-of-suffix-array-2.md @@ -58,6 +58,7 @@ struct SuffixAutomaton { ```c++ set s[N]; +bool vis[N]; void dfs(int cur) { if(vis[cur]) return; vis[cur] = 1; @@ -77,6 +78,7 @@ void dfs(int cur) { ```c++ set s[N]; +bool vis[N]; void dfs(int cur) { if(vis[cur]) return; vis[cur] = 1;