0_0_23189157_20693.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_23189157_20693.cpp:12:8: error: redeclaration of 'int& node::nbsp'
int count;
^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
int count;
^
0_0_23189157_20693.cpp:12:14: error: redeclaration of 'int& node::nbsp'
int count;
^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
int count;
^
0_0_23189157_20693.cpp:12:20: error: redeclaration of 'int& node::nbsp'
int count;
^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
int count;
^
0_0_23189157_20693.cpp:13:2: error: redeclaration of 'int& node::nbsp'
node *next[26];
^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
int count;
^
0_0_23189157_20693.cpp:13:8: error: redeclaration of 'int& node::nbsp'
node *next[26];
^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
int count;
^
0_0_23189157_20693.cpp:13:14: error: redeclaration of 'int& node::nbsp'
node *next[26];
^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
int count;
^
0_0_23189157_20693.cpp:13:20: error: redeclaration of 'int& node::nbsp'
node *next[26];
^
0_0_23189157_20693.cpp:12:2: note: previous declaration 'int& node::nbsp'
int count;
^
0_0_23189157_20693.cpp: In function 'node* build()':
0_0_23189157_20693.cpp:17:2: error: 'nbsp' was not declared in this scope
node *p = (node *)malloc(sizeof(node));
^
0_0_23189157_20693.cpp:19:59: error: 'i' was not declared in this scope
p -> next[i] = NULL;
^
0_0_23189157_20693.cpp: In function 'void save(char*)':
0_0_23189157_20693.cpp:25:2: error: 'nbsp' was not declared in this scope
int len = strlen(s);
^
0_0_23189157_20693.cpp:30:64: error: 'i' was not declared in this scope
if(p -> next[s[i] - 'a'] != NULL)//该前缀以存在,则计数加1
^
0_0_23189157_20693.cpp:32:89: error: 'i' was not declared in this scope
p = p -> next[s[i] - 'a'];
^
0_0_23189157_20693.cpp:35:49: error: 'else' without a previous 'if'
else//不存在,则建立新的结点
^
0_0_23189157_20693.cpp:37:85: error: 'i' was not declared in this scope
p -> next[s[i] - 'a'] = build();
^
0_0_23189157_20693.cpp: In function 'int query(char*)':
0_0_23189157_20693.cpp:44:2: error: 'nbsp' was not declared in this scope
int len = strlen(s);
^
0_0_23189157_20693.cpp:49:64: error: 'i' was not declared in this scope
if(p -> next[s[i] - 'a'] == NULL)//该前缀不存在
^
0_0_23189157_20693.cpp:51:65: error: 'i' was not declared in this scope
p = p -> next[s[i] - 'a'];
^
0_0_23189157_20693.cpp: In function 'int main()':
0_0_23189157_20693.cpp:57:2: error: 'nbsp' was not declared in this scope
char str[15];
^
|