0_0_20361337_18104.cpp: In member function 'void Node::to0()':
0_0_20361337_18104.cpp:14:38: error: 'memset' was not declared in this scope
memset(son,-1,sizeof(son));
^
0_0_20361337_18104.cpp: In function 'void insert(char*)':
0_0_20361337_18104.cpp:21:24: error: 'strlen' was not declared in this scope
int len = strlen(x),root = 0;
^
0_0_20361337_18104.cpp:24:19: error: 'root' was not declared in this scope
if (node[root].son[k]==-1){
^
0_0_20361337_18104.cpp:29:10: error: 'root' was not declared in this scope
root=node[root].son[k];
^
0_0_20361337_18104.cpp:32:11: error: 'root' was not declared in this scope
node[root].end++;
^
0_0_20361337_18104.cpp: In function 'int search(char*)':
0_0_20361337_18104.cpp:36:22: error: 'strlen' was not declared in this scope
int len=strlen(x),root=0,i;
^
0_0_20361337_18104.cpp:37:12: error: 'i' was not declared in this scope
for ( i = 0; i<len; i++){
^
0_0_20361337_18104.cpp:39:19: error: 'root' was not declared in this scope
if (node[root].son[temp]==-1)return 0;
^
0_0_20361337_18104.cpp:40:10: error: 'root' was not declared in this scope
root=node[root].son[temp];
^
|