0_0_26148786_28361.cpp:27:3: error: 'Node' does not name a type
Node[now].cnt++;
^
0_0_26148786_28361.cpp:28:2: error: expected ';' after struct definition
}
^
0_0_26148786_28361.cpp: In member function 'void Aho::init()':
0_0_26148786_28361.cpp:14:43: error: 'memser' was not declared in this scope
memser(Node[0].sub, 0, sizeof Node[0].sub);
^
0_0_26148786_28361.cpp: In member function 'void Aho::insert(char*)':
0_0_26148786_28361.cpp:22:51: error: 'memser' was not declared in this scope
memser(Node[total].sub, 0, sizeof Node[total].sub);
^
0_0_26148786_28361.cpp:25:28: error: 'pos' was not declared in this scope
now = Node[now].sub[str[pos] - 97];
^
0_0_26148786_28361.cpp: In function 'void build()':
0_0_26148786_28361.cpp:33:8: error: 'Node' was not declared in this scope
if (Node[0].sub[pos])
^
0_0_26148786_28361.cpp:38:9: error: 'Node' was not declared in this scope
if (Node[now].sub[pos]) {
^
0_0_26148786_28361.cpp: In function 'int Get(int)':
0_0_26148786_28361.cpp:51:11: error: 'Node' was not declared in this scope
res += Node[now].cnt; Node[now].cnt = 0;
^
0_0_26148786_28361.cpp: In function 'int query(char*)':
0_0_26148786_28361.cpp:60:10: error: 'Node' was not declared in this scope
now = Node[now].sub[str[pos] - 97];
^
0_0_26148786_28361.cpp: At global scope:
0_0_26148786_28361.cpp:67:1: error: expected declaration before '}' token
} Aho;
^
|