0_0_38699595_28263.cpp:4:1: error: 'll' does not name a type
4 | ll n,m,p,S,T;
| ^~
0_0_38699595_28263.cpp:5:8: error: 'maxn' was not declared in this scope
5 | char s[maxn];
| ^~~~
0_0_38699595_28263.cpp:7:5: error: 'll' does not name a type
7 | ll nNode=0;
| ^~
0_0_38699595_28263.cpp:8:11: error: 'maxn' was not declared in this scope
8 | int t[maxn][26];///tire树
| ^~~~
0_0_38699595_28263.cpp:9:13: error: 'maxn' was not declared in this scope
9 | int cot[maxn];
| ^~~~
0_0_38699595_28263.cpp:10:14: error: 'maxn' was not declared in this scope
10 | int fail[maxn];///fail指针
| ^~~~
0_0_38699595_28263.cpp: In member function 'void Aho::_inint_()':
0_0_38699595_28263.cpp:11:20: error: 'nNode' was not declared in this scope; did you mean 'newNode'?
11 | void _inint_(){nNode = 0;}
| ^~~~~
| newNode
0_0_38699595_28263.cpp: In member function 'int Aho::newNode()':
0_0_38699595_28263.cpp:13:33: error: 't' was not declared in this scope
13 | for(int i=0; i<26; ++i) t[nNode][i]=0;
| ^
0_0_38699595_28263.cpp:13:35: error: 'nNode' was not declared in this scope; did you mean 'newNode'?
13 | for(int i=0; i<26; ++i) t[nNode][i]=0;
| ^~~~~
| newNode
0_0_38699595_28263.cpp:14:9: error: 'cot' was not declared in this scope
14 | cot[nNode]=0;
| ^~~
0_0_38699595_28263.cpp:14:13: error: 'nNode' was not declared in this scope; did you mean 'newNode'?
14 | cot[nNode]=0;
| ^~~~~
| newNode
0_0_38699595_28263.cpp: In member function 'void Aho::Insert(char*)':
0_0_38699595_28263.cpp:18:17: error: 'strlen' was not declared in this scope
18 | int len=strlen(p);
| ^~~~~~
0_0_38699595_28263.cpp:1:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
+++ |+#include <cstring>
1 | /*** keep hungry and calm CoolGuang!***/
0_0_38699595_28263.cpp:22:17: error: 't' was not declared in this scope
22 | if(!t[rt][x]) t[rt][x]=newNode();
| ^
0_0_38699595_28263.cpp:23:16: error: 't' was not declared in this scope
23 | rt=t[rt][x];
| ^
0_0_38699595_28263.cpp:25:9: error: 'cot' was not declared in this scope
25 | cot[rt] = len;
| ^~~
0_0_38699595_28263.cpp: In member function 'void Aho::build()':
0_0_38699595_28263.cpp:28:9: error: 'queue' was not declared in this scope
28 | queue<int>q;
| ^~~~~
0_0_38699595_28263.cpp:28:15: error: expected primary-expression before 'int'
28 | queue<int>q;
| ^~~
0_0_38699595_28263.cpp:29:9: error: 'fail' was not declared in this scope
29 | fail[0]=-1;///初始点设为-1 无fail
| ^~~~
0_0_38699595_28263.cpp:30:9: error: 'q' was not declared in this scope
30 | q.push(0);
| ^
0_0_38699595_28263.cpp:34:20: error: 't' was not declared in this scope
34 | if(t[u][i]){
| ^
0_0_38699595_28263.cpp: In member function 'void Aho::update(int, int)':
0_0_38699595_28263.cpp:54:16: error: 'cot' was not declared in this scope
54 | if(cot[now]){
| ^~~
0_0_38699595_28263.cpp:55:47: error: 's' was not declared in this scope
55 | for(int k=x;k>x-cot[now];k--) s[k] = '*';
| ^
0_0_38699595_28263.cpp:58:19: error: 'fail' was not declared in this scope
58 | now = fail[now];
| ^~~~
0_0_38699595_28263.cpp: In member function 'void Aho::Match(char*)':
0_0_38699595_28263.cpp:62:19: error: 'strlen' was not declared in this scope
62 | int len = strlen(p);
| ^~~~~~
0_0_38699595_28263.cpp:62:19: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_38699595_28263.cpp:64:17: error: 'isalpha' was not declared in this scope
64 | if(!isalpha(p[i])){
| ^~~~~~~
0_0_38699595_28263.cpp:68:21: error: 'tolower' was not declared in this scope
68 | int x = tolower(p[i])-'a';
| ^~~~~~~
0_0_38699595_28263.cpp:69:16: error: 't' was not declared in this scope
69 | if(t[now][x]) now = t[now][x];
| ^
0_0_38699595_28263.cpp:71:49: error: 'fail' was not declared in this scope
71 | while(~now&&t[now][x]==0) now = fail[now];
| ^~~~
0_0_38699595_28263.cpp: In function 'int main()':
0_0_38699595_28263.cpp:80:11: error: 'scanf' was not declared in this scope
80 | int T;scanf("%d",&T);
| ^~~~~
0_0_38699595_28263.cpp:82:14: error: 'n' was not declared in this scope
82 | read(n);
| ^
0_0_38699595_28263.cpp:82:9: error: 'read' was not declared in this scope
82 | read(n);
| ^~~~
0_0_38699595_28263.cpp:85:24: error: 's' was not declared in this scope
85 | scanf("%s",s);
| ^
0_0_38699595_28263.cpp:90:14: error: 's' was not declared in this scope
90 | gets(s);
| ^
0_0_38699595_28263.cpp:90:9: error: 'gets' was not declared in this scope
90 | gets(s);
| ^~~~
0_0_38699595_28263.cpp:91:19: error: 'strlen' was not declared in this scope
91 | int len = strlen(s);
| ^~~~~~
0_0_38699595_28263.cpp:91:19: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_38699595_28263.cpp:93:9: error: 'printf' was not declared in this scope
93 | printf("%s\n",s);
| ^~~~~~
0_0_38699595_28263.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | /*** keep hungry and calm CoolGuang!***/
|