0_0_17559727_7862.cpp: In function 'void Insert(char*)':
0_0_17559727_7862.cpp:10:23: error: 'strlen' was not declared in this scope
int i,n = strlen(s);
^
0_0_17559727_7862.cpp:14:34: error: 'NULL' was not declared in this scope
if (p->next[s[i]-'a'] == NULL)
^
0_0_17559727_7862.cpp: In function 'int Search(char*)':
0_0_17559727_7862.cpp:30:23: error: 'strlen' was not declared in this scope
int i,n = strlen(s);
^
0_0_17559727_7862.cpp:34:34: error: 'NULL' was not declared in this scope
if (p->next[s[i]-'a'] == NULL)
^
0_0_17559727_7862.cpp: In function 'void Release(Trie*)':
0_0_17559727_7862.cpp:42:14: error: 'NULL' was not declared in this scope
if (p == NULL)
^
0_0_17559727_7862.cpp:45:27: error: 'NULL' was not declared in this scope
if (p->next[i] != NULL)
^
0_0_17559727_7862.cpp:47:11: error: 'free' was not declared in this scope
free(p);
^
0_0_17559727_7862.cpp:48:12: error: 'NULL' was not declared in this scope
root = NULL;
^
0_0_17559727_7862.cpp: In function 'void Init()':
0_0_17559727_7862.cpp:56:25: error: 'NULL' was not declared in this scope
root->next[i] = NULL;
^
0_0_17559727_7862.cpp: In function 'int main()':
0_0_17559727_7862.cpp:64:17: error: 'gets' was not declared in this scope
gets(str);
^
0_0_17559727_7862.cpp:65:26: error: 'strcmp' was not declared in this scope
if (strcmp(str,"")==0) break;
^
0_0_17559727_7862.cpp:68:28: error: 'scanf' was not declared in this scope
while (~scanf ("%s",str))
^
0_0_17559727_7862.cpp:69:35: error: 'printf' was not declared in this scope
printf ("%d\n",Search(str));
^
|