From afbe1828a04262a8d5bfde74bd3d1b1f510e7acf Mon Sep 17 00:00:00 2001 From: psb0623 <81062893+psb0623@users.noreply.github.com> Date: Mon, 27 May 2024 19:57:45 +0900 Subject: [PATCH] Update 2024-05-27-suffix-automaton-instead-of-suffix-array-2.md --- _posts/2024-05-27-suffix-automaton-instead-of-suffix-array-2.md | 2 ++ 1 file changed, 2 insertions(+) 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;