0_0_26332818_7808.cpp:17:18: error: expected primary-expression before ']' token
int pre[maxn<],step[maxn];
^
0_0_26332818_7808.cpp: In member function 'void SAM::init()':
0_0_26332818_7808.cpp:24:9: error: 'pre' was not declared in this scope
pre[0] = -1;
^
0_0_26332818_7808.cpp: In member function 'void SAM::Insert(int)':
0_0_26332818_7808.cpp:36:17: error: 'pre' was not declared in this scope
p = pre[p];
^
0_0_26332818_7808.cpp:38:21: error: 'pre' was not declared in this scope
if(p == -1) pre[np] = 0;
^
0_0_26332818_7808.cpp:47:17: error: 'pre' was not declared in this scope
pre[nq] = pre[q];
^
0_0_26332818_7808.cpp:55:17: error: 'pre' was not declared in this scope
pre[np] = q;
^
0_0_26332818_7808.cpp: In member function 'void SAM::calc(int)':
0_0_26332818_7808.cpp:77:17: error: 'pre' was not declared in this scope
num[pre[top[i]]] += num[top[i]];
^
0_0_26332818_7808.cpp: In member function 'void SAM::get(int)':
0_0_26332818_7808.cpp:84:51: error: 'pre' was not declared in this scope
if(num[np]>=K) ans += step[np] - step[pre[np]];
^
0_0_26332818_7808.cpp:85:18: error: 'pre' was not declared in this scope
np = pre[np];
^
|