0_0_17559690_19096.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_17559690_19096.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_17559690_19096.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_17559690_19096.cpp: In function 'void Insert(char*)':
0_0_17559690_19096.cpp:14:23: error: 'strlen' was not declared in this scope
int i,n = strlen(s);
^
0_0_17559690_19096.cpp:18:34: error: 'NULL' was not declared in this scope
if (p->next[s[i]-'a'] == NULL)
^
0_0_17559690_19096.cpp: In function 'int Search(char*)':
0_0_17559690_19096.cpp:34:23: error: 'strlen' was not declared in this scope
int i,n = strlen(s);
^
0_0_17559690_19096.cpp:38:34: error: 'NULL' was not declared in this scope
if (p->next[s[i]-'a'] == NULL)
^
0_0_17559690_19096.cpp: In function 'void Release(Trie*)':
0_0_17559690_19096.cpp:46:14: error: 'NULL' was not declared in this scope
if (p == NULL)
^
0_0_17559690_19096.cpp:49:27: error: 'NULL' was not declared in this scope
if (p->next[i] != NULL)
^
0_0_17559690_19096.cpp:51:11: error: 'free' was not declared in this scope
free(p);
^
0_0_17559690_19096.cpp:52:12: error: 'NULL' was not declared in this scope
root = NULL;
^
0_0_17559690_19096.cpp: In function 'void Init()':
0_0_17559690_19096.cpp:60:25: error: 'NULL' was not declared in this scope
root->next[i] = NULL;
^
0_0_17559690_19096.cpp: In function 'int main()':
0_0_17559690_19096.cpp:68:17: error: 'gets' was not declared in this scope
gets(str);
^
0_0_17559690_19096.cpp:69:26: error: 'strcmp' was not declared in this scope
if (strcmp(str,"")==0) break;
^
0_0_17559690_19096.cpp:72:28: error: 'scanf' was not declared in this scope
while (~scanf ("%s",str))
^
0_0_17559690_19096.cpp:73:35: error: 'printf' was not declared in this scope
printf ("%d\n",Search(str));
^
|