0_0_22462418_31038.cpp:2:1: error: 't' does not name a type
t int INF = 0x3fffffff;
^
0_0_22462418_31038.cpp:4:17: error: 'maxn' was not declared in this scope
int dp[30][100][maxn];
^
0_0_22462418_31038.cpp:6:14: error: 'maxn' was not declared in this scope
int next[maxn][26],fail[maxn],end[maxn];
^
0_0_22462418_31038.cpp:6:29: error: 'maxn' was not declared in this scope
int next[maxn][26],fail[maxn],end[maxn];
^
0_0_22462418_31038.cpp:6:39: error: 'maxn' was not declared in this scope
int next[maxn][26],fail[maxn],end[maxn];
^
0_0_22462418_31038.cpp:31:5: error: 'queue' does not name a type
queue<int> q;
^
0_0_22462418_31038.cpp: In member function 'void AC::init()':
0_0_22462418_31038.cpp:10:16: error: 'next' was not declared in this scope
memset(next[0],0,sizeof(next[0]));
^
0_0_22462418_31038.cpp:10:16: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_22462418_31038.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: 'std::next'
next(_ForwardIterator __x, typename
^
0_0_22462418_31038.cpp:11:9: error: 'fail' was not declared in this scope
fail[0]=end[0]=0;
^
0_0_22462418_31038.cpp:11:17: error: 'end' was not declared in this scope
fail[0]=end[0]=0;
^
0_0_22462418_31038.cpp:11:17: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
from 0_0_22462418_31038.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note: 'std::end'
end(const valarray<_Tp>& __va)
^
0_0_22462418_31038.cpp: In member function 'int AC::newnode()':
0_0_22462418_31038.cpp:15:16: error: 'next' was not declared in this scope
memset(next[size],0,sizeof(next[size]));
^
0_0_22462418_31038.cpp:15:16: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_22462418_31038.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: 'std::next'
next(_ForwardIterator __x, typename
^
0_0_22462418_31038.cpp:16:9: error: 'fail' was not declared in this scope
fail[size]=end[size]=0;
^
0_0_22462418_31038.cpp:16:20: error: 'end' was not declared in this scope
fail[size]=end[size]=0;
^
0_0_22462418_31038.cpp:16:20: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
from 0_0_22462418_31038.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note: 'std::end'
end(const valarray<_Tp>& __va)
^
0_0_22462418_31038.cpp: In member function 'void AC::insert(char*, int)':
0_0_22462418_31038.cpp:24:16: error: 'next' was not declared in this scope
if(next[now][x]==0){
^
0_0_22462418_31038.cpp:24:16: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_22462418_31038.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: 'std::next'
next(_ForwardIterator __x, typename
^
0_0_22462418_31038.cpp:27:17: error: 'next' was not declared in this scope
now=next[now][x];
^
0_0_22462418_31038.cpp:27:17: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_22462418_31038.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: 'std::next'
next(_ForwardIterator __x, typename
^
0_0_22462418_31038.cpp:29:9: error: 'end' was not declared in this scope
end[now]=id;
^
0_0_22462418_31038.cpp:29:9: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
from 0_0_22462418_31038.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note: 'std::end'
end(const valarray<_Tp>& __va)
^
0_0_22462418_31038.cpp: In member function 'void AC::build()':
0_0_22462418_31038.cpp:34:16: error: 'next' was not declared in this scope
if(next[0][i]) q.push(next[0][i]);
^
0_0_22462418_31038.cpp:34:16: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_22462418_31038.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: 'std::next'
next(_ForwardIterator __x, typename
^
0_0_22462418_31038.cpp:34:28: error: 'q' was not declared in this scope
if(next[0][i]) q.push(next[0][i]);
^
0_0_22462418_31038.cpp:36:16: error: 'q' was not declared in this scope
while(!q.empty()){
^
0_0_22462418_31038.cpp:40:23: error: 'next' was not declared in this scope
int x=next[now][i];
^
0_0_22462418_31038.cpp:40:23: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/includ
|