0_0_38645010_15086.cpp: In function 'void insert(const char*, int)':
0_0_38645010_15086.cpp:8:8: error: 'nex' was not declared in this scope
if (!nex[p][c]) nex[p][c] = ++cnt; // 如果没有,就添加结点
^~~
0_0_38645010_15086.cpp:8:8: note: suggested alternative: 'onexit'
if (!nex[p][c]) nex[p][c] = ++cnt; // 如果没有,就添加结点
^~~
onexit
0_0_38645010_15086.cpp:8:33: error: 'cnt' was not declared in this scope
if (!nex[p][c]) nex[p][c] = ++cnt; // 如果没有,就添加结点
^~~
0_0_38645010_15086.cpp:8:33: note: suggested alternative: 'int'
if (!nex[p][c]) nex[p][c] = ++cnt; // 如果没有,就添加结点
^~~
int
0_0_38645010_15086.cpp:9:7: error: 'nex' was not declared in this scope
p = nex[p][c];
^~~
0_0_38645010_15086.cpp:9:7: note: suggested alternative: 'onexit'
p = nex[p][c];
^~~
onexit
0_0_38645010_15086.cpp:11:2: error: 'exist' was not declared in this scope
exist[p] = 1;
^~~~~
0_0_38645010_15086.cpp:11:2: note: suggested alternative: 'exit'
exist[p] = 1;
^~~~~
exit
0_0_38645010_15086.cpp: In function 'bool find(const char*, int)':
0_0_38645010_15086.cpp:17:8: error: 'nex' was not declared in this scope
if (!nex[p][c]) return 0;
^~~
0_0_38645010_15086.cpp:17:8: note: suggested alternative: 'onexit'
if (!nex[p][c]) return 0;
^~~
onexit
0_0_38645010_15086.cpp:18:7: error: 'nex' was not declared in this scope
p = nex[p][c];
^~~
0_0_38645010_15086.cpp:18:7: note: suggested alternative: 'onexit'
p = nex[p][c];
^~~
onexit
0_0_38645010_15086.cpp:20:9: error: 'exist' was not declared in this scope
return exist[p];
^~~~~
0_0_38645010_15086.cpp:20:9: note: suggested alternative: 'exit'
return exist[p];
^~~~~
exit
|