/in/foo.cc:10:33: error: 'N1' was not declared in this scope
int ch[N][27],fail[N],en[N],en[N1],cnt;
^~
/in/foo.cc: In member function 'void acauto::acmach(int)':
/in/foo.cc:16:4: error: 'itn' was not declared in this scope
itn tmp=q.front();q.pop();
^~~
/in/foo.cc:18:11: error: 'tmp' was not declared in this scope
if(ch[tmp][i]){
^~~
/in/foo.cc:21:11: error: 't1' was not declared in this scope
fail[t1]=t? ch[t][i]:x;
^~
/in/foo.cc:23:6: error: 'en1' was not declared in this scope
en1[t1]=en1[fail[t1]]+en[t1];
^~~
/in/foo.cc: In member function 'void acauto::insert()':
/in/foo.cc:45:26: error: 'acmatch' was not declared in this scope
acmatch(root[top]);
^
/in/foo.cc: In member function 'int acauto::query(int)':
/in/foo.cc:60:22: error: 'en1' was not declared in this scope
ret+=en1[now];
^~~