0_0_16403760_8206.cpp:6:1: error: 'map' does not name a type
map<string,int> ms;
^
0_0_16403760_8206.cpp: In member function 'void AhoCorasickAutomata::init()':
0_0_16403760_8206.cpp:18:37: error: 'memset' was not declared in this scope
memset(ch[0],0,sizeof(ch[0]));
^
0_0_16403760_8206.cpp:19:9: error: 'ms' was not declared in this scope
ms.clear();
^
0_0_16403760_8206.cpp: In member function 'void AhoCorasickAutomata::insert(char*, int)':
0_0_16403760_8206.cpp:27:27: error: 'strlen' was not declared in this scope
int u=0,n=strlen(s);
^
0_0_16403760_8206.cpp:31:47: error: 'memset' was not declared in this scope
memset(ch[sz],0,sizeof(ch[sz]));
^
0_0_16403760_8206.cpp:38:9: error: 'ms' was not declared in this scope
ms[string(s)]=v;
^
0_0_16403760_8206.cpp:38:20: error: 'string' was not declared in this scope
ms[string(s)]=v;
^
0_0_16403760_8206.cpp: In member function 'int AhoCorasickAutomata::find(char*)':
0_0_16403760_8206.cpp:49:23: error: 'strlen' was not declared in this scope
int n=strlen(T);
^
0_0_16403760_8206.cpp: In member function 'void AhoCorasickAutomata::getFail()':
0_0_16403760_8206.cpp:61:9: error: 'queue' was not declared in this scope
queue<int> que;
^
0_0_16403760_8206.cpp:61:15: error: expected primary-expression before 'int'
queue<int> que;
^
0_0_16403760_8206.cpp:67:17: error: 'que' was not declared in this scope
que.push(u);
^
0_0_16403760_8206.cpp:71:16: error: 'que' was not declared in this scope
while(!que.empty()) {
^
0_0_16403760_8206.cpp: In function 'int main()':
0_0_16403760_8206.cpp:91:21: error: 'scanf' was not declared in this scope
scanf("%d",&kase);
^
0_0_16403760_8206.cpp:102:27: error: 'printf' was not declared in this scope
printf("%d",ac.cnt);
^
|