0_0_13466858_11591.cpp:1:13: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13466858_11591.cpp:3:11: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13466858_11591.cpp:5:11: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13466858_11591.cpp: In constructor 'node::node()':
0_0_13466858_11591.cpp:27:14: error: 'NULL' was not declared in this scope
fail=NULL;
^
0_0_13466858_11591.cpp:31:38: error: 'memset' was not declared in this scope
memset(next,NULL,sizeof(next));
^
0_0_13466858_11591.cpp: In function 'void insert(char*, node*, int)':
0_0_13466858_11591.cpp:55:28: error: 'NULL' was not declared in this scope
if(p->next[index]==NULL) p->next[index]=new node();
^
0_0_13466858_11591.cpp: In function 'void build_ac_automation(node*)':
0_0_13466858_11591.cpp:73:16: error: 'NULL' was not declared in this scope
root->fail=NULL;
^
0_0_13466858_11591.cpp: In function 'int query(node*)':
0_0_13466858_11591.cpp:139:39: error: 'strlen' was not declared in this scope
int i=0,cnt=0,index,len=strlen(str);
^
0_0_13466858_11591.cpp:149:31: error: 'NULL' was not declared in this scope
while(p->next[index]==NULL && p!=root)
^
0_0_13466858_11591.cpp:155:15: error: 'NULL' was not declared in this scope
p=(p==NULL)?root:p;
^
0_0_13466858_11591.cpp: In function 'void print(int, int, int)':
0_0_13466858_11591.cpp:201:24: error: 'printf' was not declared in this scope
printf("web %d:",na);
^
0_0_13466858_11591.cpp: In function 'int main()':
0_0_13466858_11591.cpp:225:24: error: 'scanf' was not declared in this scope
while(scanf("%d",&n)!=EOF)
^
0_0_13466858_11591.cpp:225:27: error: 'EOF' was not declared in this scope
while(scanf("%d",&n)!=EOF)
^
0_0_13466858_11591.cpp:235:17: error: 'getchar' was not declared in this scope
getchar();
^
0_0_13466858_11591.cpp:241:25: error: 'gets' was not declared in this scope
gets(keyword);
^
0_0_13466858_11591.cpp:255:45: error: 'memset' was not declared in this scope
memset(biaoshi,0,sizeof(biaoshi));
^
0_0_13466858_11591.cpp:273:31: error: 'printf' was not declared in this scope
printf("total: %d\n",j);
^
|