0_0_14900701_7611.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_14900701_7611.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_14900701_7611.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_14900701_7611.cpp: In constructor 'trie::trie()':
0_0_14900701_7611.cpp:13:19: error: 'NULL' was not declared in this scope
ch[i]=NULL;
^
0_0_14900701_7611.cpp:14:14: error: 'NULL' was not declared in this scope
fail=NULL;
^
0_0_14900701_7611.cpp: In function 'void insert(char*)':
0_0_14900701_7611.cpp:28:33: error: 'NULL' was not declared in this scope
if (current->ch[index]==NULL) current->ch[index]=new trie();
^
0_0_14900701_7611.cpp: In function 'void dog()':
0_0_14900701_7611.cpp:41:16: error: 'NULL' was not declared in this scope
root->fail=NULL;
^
0_0_14900701_7611.cpp:44:5: error: expected ')' before '{' token
{
^
0_0_14900701_7611.cpp: In function 'int pig(char*)':
0_0_14900701_7611.cpp:75:35: error: 'NULL' was not declared in this scope
while(current->ch[index]==NULL&¤t!=root) current=current->fail;
^
0_0_14900701_7611.cpp:77:27: error: 'NULL' was not declared in this scope
current=(current==NULL)?root:current;
^
0_0_14900701_7611.cpp: In function 'int main()':
0_0_14900701_7611.cpp:93:19: error: 'scanf' was not declared in this scope
scanf("%d",&tt);
^
0_0_14900701_7611.cpp:105:29: error: 'printf' was not declared in this scope
printf("%d\n",pig(s));
^
|