0_0_22462410_6867.cpp:3:8: error: expected constructor, destructor, or type conversion before '(' token
freopen("w.txt", "w", stdout);
^
0_0_22462410_6867.cpp:4:8: error: expected constructor, destructor, or type conversion before '(' token
freopen("r.txt", "r", stdin);
^
0_0_22462410_6867.cpp:5:1: error: 't' does not name a type
t int INF = 0x3fffffff;
^
0_0_22462410_6867.cpp:7:17: error: 'maxn' was not declared in this scope
int dp[30][100][maxn];
^
0_0_22462410_6867.cpp:9:14: error: 'maxn' was not declared in this scope
int next[maxn][26],fail[maxn],end[maxn];
^
0_0_22462410_6867.cpp:9:29: error: 'maxn' was not declared in this scope
int next[maxn][26],fail[maxn],end[maxn];
^
0_0_22462410_6867.cpp:9:39: error: 'maxn' was not declared in this scope
int next[maxn][26],fail[maxn],end[maxn];
^
0_0_22462410_6867.cpp:34:5: error: 'queue' does not name a type
queue<int> q;
^
0_0_22462410_6867.cpp: In member function 'void AC::init()':
0_0_22462410_6867.cpp:13:16: error: 'next' was not declared in this scope
memset(next[0],0,sizeof(next[0]));
^
0_0_22462410_6867.cpp:13: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_22462410_6867.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_22462410_6867.cpp:14:9: error: 'fail' was not declared in this scope
fail[0]=end[0]=0;
^
0_0_22462410_6867.cpp:14:17: error: 'end' was not declared in this scope
fail[0]=end[0]=0;
^
0_0_22462410_6867.cpp:14: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_22462410_6867.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note: 'std::end'
end(const valarray<_Tp>& __va)
^
0_0_22462410_6867.cpp: In member function 'int AC::newnode()':
0_0_22462410_6867.cpp:18:16: error: 'next' was not declared in this scope
memset(next[size],0,sizeof(next[size]));
^
0_0_22462410_6867.cpp:18: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_22462410_6867.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_22462410_6867.cpp:19:9: error: 'fail' was not declared in this scope
fail[size]=end[size]=0;
^
0_0_22462410_6867.cpp:19:20: error: 'end' was not declared in this scope
fail[size]=end[size]=0;
^
0_0_22462410_6867.cpp:19: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_22462410_6867.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note: 'std::end'
end(const valarray<_Tp>& __va)
^
0_0_22462410_6867.cpp: In member function 'void AC::insert(char*, int)':
0_0_22462410_6867.cpp:27:16: error: 'next' was not declared in this scope
if(next[now][x]==0){
^
0_0_22462410_6867.cpp:27: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_22462410_6867.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_22462410_6867.cpp:30:17: error: 'next' was not declared in this scope
now=next[now][x];
^
0_0_22462410_6867.cpp:30: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_22462410_6867.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_22462410_6867.cpp:32:9: error: 'end' was not declared in this scope
end[now]=id;
^
0_0_22462410_6867.cpp:32: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_22462410_6867.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note: 'std::end'
end(const valarray<_Tp>& __va)
^
0_0_22462410_6867.cpp: In member function 'void AC::build()':
0_0_22462410_6867.cpp:37:16: error: 'next' was not declared in this scope
if(next[0][i]) q.push(next[0][i]);
^
0_0_22462410_6867.cpp:37: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_22462410_6867.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_22462410_6867.cpp:37:28: error: 'q' was not declared in this scope
if(next[0][i]) q.push(next[0][i]);
^
0_0_22462410_6867.cpp:39:16: error: 'q' was not declared in this scope
while(!q.empty()){
^
0_0_22462410_6867.cpp:43:23: error: 'next' was not declared in this scope
int x=next[now][i];
^
0_0_22462410_6867.cpp:43: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+
|