0_0_25084408_15301.cpp:36:36: error: 'maxn' was not declared in this scope
int deep, fail, cnt, nxt[MM], val[maxn];
^
0_0_25084408_15301.cpp: In member function 'void node::clear()':
0_0_25084408_15301.cpp:39:10: error: 'val' was not declared in this scope
memset(val, 0, sizeof val);
^
0_0_25084408_15301.cpp: In member function 'void automaton::insert(int, int)':
0_0_25084408_15301.cpp:56:13: error: 'struct node' has no member named 'val'
mem[p1].val[id]++;
^
0_0_25084408_15301.cpp:65:19: error: 'maxn' was not declared in this scope
for(int i=0; i<maxn; i++) mem[p2].val[i]=0;
^
0_0_25084408_15301.cpp:65:38: error: 'struct node' has no member named 'val'
for(int i=0; i<maxn; i++) mem[p2].val[i]=0;
^
0_0_25084408_15301.cpp:66:12: error: 'struct node' has no member named 'val'
mem[p2].val[id]=1;
^
0_0_25084408_15301.cpp:86:10: error: 'struct node' has no member named 'val'
mem[p].val[id]=1;
^
0_0_25084408_15301.cpp:101:19: error: 'maxn' was not declared in this scope
for(int i=0; i<maxn; i++) mem[p2].val[i]=0;
^
0_0_25084408_15301.cpp:101:38: error: 'struct node' has no member named 'val'
for(int i=0; i<maxn; i++) mem[p2].val[i]=0;
^
0_0_25084408_15301.cpp: In member function 'void automaton::build(int)':
0_0_25084408_15301.cpp:125:37: error: 'struct node' has no member named 'val'
for(int j=0; j<=n; j++) mem[prv].val[j]+=mem[cur].val[j];
^
0_0_25084408_15301.cpp:125:54: error: 'struct node' has no member named 'val'
for(int j=0; j<=n; j++) mem[prv].val[j]+=mem[cur].val[j];
^
0_0_25084408_15301.cpp: In function 'int main()':
0_0_25084408_15301.cpp:155:46: error: no matching function for call to 'automaton::insert(int)'
for(int j=0; j<n; j++) sam.insert(s[i]-'a');
^
0_0_25084408_15301.cpp:155:46: note: candidate is:
0_0_25084408_15301.cpp:52:7: note: void automaton::insert(int, int)
void insert(int c, int id) {
^
0_0_25084408_15301.cpp:52:7: note: candidate expects 2 arguments, 1 provided
|