0_0_31341705_6940.cpp: In function 'void Insert(char*)':
0_0_31341705_6940.cpp:11:18: error: 'strlen' was not declared in this scope
int n = strlen(s), now = root;
^
0_0_31341705_6940.cpp:14:11: error: 'now' was not declared in this scope
if(!son[now][ch-'a']){
^
0_0_31341705_6940.cpp:17:3: error: 'now' was not declared in this scope
now = son[now][ch-'a'];
^
0_0_31341705_6940.cpp: In function 'int Query(char*)':
0_0_31341705_6940.cpp:22:18: error: 'strlen' was not declared in this scope
int n = strlen(s), now = root;
^
0_0_31341705_6940.cpp:25:11: error: 'now' was not declared in this scope
if(!son[now][ch-'a']) return 0;
^
0_0_31341705_6940.cpp:26:3: error: 'now' was not declared in this scope
now = son[now][ch-'a'];
^
0_0_31341705_6940.cpp:28:14: error: 'now' was not declared in this scope
return data[now];
^
0_0_31341705_6940.cpp: In function 'int main()':
0_0_31341705_6940.cpp:32:14: error: 'strlen' was not declared in this scope
if(strlen(s) == 0 || s[0]==' ') break;
^
|