0_0_14532222_424.cpp:145:1: error: stray '\264' in program
΄ύΡ§
^
0_0_14532222_424.cpp:145:1: error: stray '\375' in program
0_0_14532222_424.cpp:145:1: error: stray '\321' in program
0_0_14532222_424.cpp:145:1: error: stray '\247' in program
0_0_14532222_424.cpp:4:10: error: 'maxn' was not declared in this scope
int num[maxn], Rank[maxn], sa[maxn], height[maxn];
^
0_0_14532222_424.cpp:4:22: error: 'maxn' was not declared in this scope
int num[maxn], Rank[maxn], sa[maxn], height[maxn];
^
0_0_14532222_424.cpp:4:32: error: 'maxn' was not declared in this scope
int num[maxn], Rank[maxn], sa[maxn], height[maxn];
^
0_0_14532222_424.cpp:4:46: error: 'maxn' was not declared in this scope
int num[maxn], Rank[maxn], sa[maxn], height[maxn];
^
0_0_14532222_424.cpp:5:9: error: 'maxn' was not declared in this scope
int wa[maxn], wb[maxn], wv[maxn], wss[maxn];
^
0_0_14532222_424.cpp:5:19: error: 'maxn' was not declared in this scope
int wa[maxn], wb[maxn], wv[maxn], wss[maxn];
^
0_0_14532222_424.cpp:5:29: error: 'maxn' was not declared in this scope
int wa[maxn], wb[maxn], wv[maxn], wss[maxn];
^
0_0_14532222_424.cpp:5:40: error: 'maxn' was not declared in this scope
int wa[maxn], wb[maxn], wv[maxn], wss[maxn];
^
0_0_14532222_424.cpp:83:6: error: 'int MultSufArr::check(int, int)' cannot be overloaded
int check(int mid, int k)
^
0_0_14532222_424.cpp:60:6: error: with 'bool MultSufArr::check(int, int)'
bool check(int k, int n)
^
0_0_14532222_424.cpp:122:7: error: 'void MultSufArr::check()' cannot be overloaded
void check()
^
0_0_14532222_424.cpp:50:6: error: with 'int MultSufArr::check()'
int check()
^
0_0_14532222_424.cpp: In member function 'void MultSufArr::init(int)':
0_0_14532222_424.cpp:15:9: error: 'num' was not declared in this scope
Build(num, sa, n+1, 300);
^
0_0_14532222_424.cpp:15:14: error: 'sa' was not declared in this scope
Build(num, sa, n+1, 300);
^
0_0_14532222_424.cpp: In member function 'void MultSufArr::Build(int*, int*, int, int)':
0_0_14532222_424.cpp:20:21: error: 'wa' was not declared in this scope
int i, j, p, *x = wa, *y = wb, *t;
^
0_0_14532222_424.cpp:21:25: error: 'wss' was not declared in this scope
for (i = 0; i<m; i++) wss[i] = 0;
^
0_0_14532222_424.cpp:22:25: error: 'wss' was not declared in this scope
for (i = 0; i<n; i++) wss[x[i] = r[i]]++;
^
0_0_14532222_424.cpp:23:25: error: 'wss' was not declared in this scope
for (i = 1; i<m; i++) wss[i] += wss[i-1];
^
0_0_14532222_424.cpp:24:33: error: 'wss' was not declared in this scope
for (i = n-1; i>=0; i--) sa[--wss[x[i]]] = i;
^
0_0_14532222_424.cpp:27:35: error: 'y' was not declared in this scope
for (p = 0, i = n-j; i<n; i++) y[p++] = i;
^
0_0_14532222_424.cpp:28:41: error: 'y' was not declared in this scope
for (i = 0; i<n; i++) if (sa[i] >=j) y[p++] = sa[i]-j;
^
0_0_14532222_424.cpp:29:26: error: 'wv' was not declared in this scope
for (i = 0; i<n; i++) wv[i] = x[y[i]];
^
0_0_14532222_424.cpp:29:36: error: 'y' was not declared in this scope
for (i = 0; i<n; i++) wv[i] = x[y[i]];
^
0_0_14532222_424.cpp:30:26: error: 'wss' was not declared in this scope
for (i = 0; i<m; i++) wss[i] = 0;
^
0_0_14532222_424.cpp:31:26: error: 'wss' was not declared in this scope
for (i = 0; i<n; i++) wss[wv[i]]++;
^
0_0_14532222_424.cpp:31:30: error: 'wv' was not declared in this scope
for (i = 0; i<n; i++) wss[wv[i]]++;
^
0_0_14532222_424.cpp:32:26: error: 'wss' was not declared in this scope
for (i = 1; i<m; i++) wss[i]+=wss[i-1];
^
0_0_14532222_424.cpp:33:34: error: 'wss' was not declared in this scope
for (i = n-1; i>=0; i--) sa[--wss[wv[i]]] = y[i];
^
0_0_14532222_424.cpp:33:38: error: 'wv' was not declared in this scope
for (i = n-1; i>=0; i--) sa[--wss[wv[i]]] = y[i];
^
0_0_14532222_424.cpp:33:48: error: 'y' was not declared in this scope
for (i = n-1; i>=0; i--) sa[--wss[wv[i]]] = y[i];
^
0_0_14532222_424.cpp:34:9: error: 't' was not declared in this scope
for (t = x, x = y, y = t, p = 1, x[sa[0]] = 0, i = 1; i<n; i++)
^
0_0_14532222_424.cpp:34:20: error: 'y' was not declared in this scope
for (t = x, x = y, y = t, p = 1, x[sa[0]] = 0, i = 1; i<n; i++)
^
0_0_14532222_424.cpp: In member function 'void MultSufArr::calHeight(int*, int*, int)':
0_0_14532222_424.cpp:42:28: error: 'Rank' was not declared in this scope
for (i = 1; i <= n; ++i) Rank[sa[i]] = i;
^
0_0_14532222_424.cpp:43:22: error: 'height' was not declared in this scope
for (i = 0; i < n; height[Rank[i++]] = k)
^
0_0_14532222_424.cpp:43:29: error: 'Rank' was not declared in this scope
for (i = 0; i < n; height[Rank[i++]] = k)
^
0_0_14532222_424.cpp: In member function 'int MultSufArr::check()':
0_0_14532222_424.cpp:54:24: error: 'sa' was not declared in this scope
ret += n - sa[i] - height[i];
^
0_0_14532222_424.cpp:54:32: error: 'height' was not declared in this scope
ret += n - sa[i] - height[i];
^
0_0_14532222_424.cpp: In member function 'bool MultSufArr::check(int, int)':
0_0_14532222_424.cpp:65:7: error: 'height' was not declared in this scope
if (height[i] >= k)
^
0_0_14532222_424.cpp:67:21: error: 'sa' was not declared in this scope
maxs = max(maxs, sa[i]);
^
0_0_14532222_424.cpp:67:26: error: 'max' was not declared in this scope
maxs = max(maxs, sa[i]);
^
0_0_14532222_424.cpp:68:26: error: 'min' was not declared in this scope
mins = min(mins, sa[i]);
^
0_0_14532222_424.cpp:74:18: error: 'sa' was not declared in this scope
maxs = mins = sa[i];
^
0_0_14532222_424.cpp: In member function 'int MultSufArr::check(int, int)':
0_0_14532222_424.cpp:88:8: error: 'height' was not declared in this scope
if (height[i] >= mid)
^
0_0_14532222_424.cpp: In member function 'void MultSufArr::RMQinit()':
0_0_14532222_424.cpp:106:6: error: 'log' was not declared in this scope
log[0] = -1;
^
0_0_14532222_424.cpp:109:35: error: 'rmq' was not declared in this scope
for (int i = 1; i<n; i++) rmq[i][0] = height[i];
^
0_0_14532222_424.cpp:109:47: error: 'height' was not declared in this scope
for (int i = 1; i<n; i++) rmq[i][0] = height[i];
^
0_0_14532222_424.cpp:112:17: error: 'rmq' was not declared in this scope
rmq[i][j] = min(rmq[i][j-1], rmq[i+(1<<(j-1))][j-1]);
^
0_0_14532222_424.cpp:112:68: error: 'min' was not declared in this scope
rmq[i][j] = min(rmq[i][j-1], rmq[i+(1<<(j-1))][j-1]);
^
0_0_14532222_424.cpp: In member function 'int MultSufArr::RMQ(int, int)':
0_0_14532222_424.cpp:116:14: error: 'Rank' was not declared in this scope
int l = Rank[a], r = Rank[b];
^
0_0_14532222_424.cpp:117:14: error: 'r' was not declared in this scope
if (l > r) swap(l, r);
^
0_0_14532222_424.cpp:117:26: error: 'swap' was not declared in this scope
if (l > r) swap(l, r);
^
0_0_14532222_424.cpp:119:17: error: 'log' was not declared in this scope
int k = log[r-l+1];
^
0_0_14532222_424.cpp:119:21: error: 'r' was not declared in this scope
int k = log[r-l+1];
^
0_0_14532222_424.cpp:120:20: error: 'rmq' was not declared in this scope
return min(rmq[l][k], rmq[r-(1<<k)+1][k]);
^
0_0_14532222_424.cpp:120:49: error: 'min' was not declared in this scope
return min(rmq[l][k], rmq[r-(1<<k)+1][k]);
^
0_0_14532222_424.cpp: In member function 'void MultSufArr::check()':
0_0_14532222_424.cpp:126:27: error: 'len' was not declared in this scope
for (int i = 0; i<len; i++)
^
0_0_14532222_424.cpp:128:23: error: 'solve' was not declared in this scope
int tmp = solve.RMQ(i, 2*len - i);
^
0_0_14532222_424.cpp:141:45: error: 'str' was not declared in this scope
for (int i = 0; i<ans; i++) putchar(str[pos+i]);
^
0_0_14532222_424.cpp:141:55: error: 'putchar' was not declared in this scope
for (int i = 0; i<ans; i++) putchar(str[pos+i]);
^
0_0_14532222_424.cpp:142:21: error: 'putchar' was not declared in this scope
putchar('\n');
|