0_0_33768803_6497.cpp:5:11: error: 'MAXN' was not declared in this scope
int f[MAXN], c[MAXN][2], v[MAXN], s[MAXN], st[MAXN];
^
0_0_33768803_6497.cpp:5:20: error: 'MAXN' was not declared in this scope
int f[MAXN], c[MAXN][2], v[MAXN], s[MAXN], st[MAXN];
^
0_0_33768803_6497.cpp:5:32: error: 'MAXN' was not declared in this scope
int f[MAXN], c[MAXN][2], v[MAXN], s[MAXN], st[MAXN];
^
0_0_33768803_6497.cpp:5:41: error: 'MAXN' was not declared in this scope
int f[MAXN], c[MAXN][2], v[MAXN], s[MAXN], st[MAXN];
^
0_0_33768803_6497.cpp:5:51: error: 'MAXN' was not declared in this scope
int f[MAXN], c[MAXN][2], v[MAXN], s[MAXN], st[MAXN];
^
0_0_33768803_6497.cpp:6:12: error: 'MAXN' was not declared in this scope
bool r[MAXN];
^
0_0_33768803_6497.cpp: In member function 'void LCT::init(int)':
0_0_33768803_6497.cpp:10:13: error: 'c' was not declared in this scope
c[i][0] = c[i][1] = f[i] = s[i] = r[i] = v[i] = st[i] = 0;
^
0_0_33768803_6497.cpp:10:33: error: 'f' was not declared in this scope
c[i][0] = c[i][1] = f[i] = s[i] = r[i] = v[i] = st[i] = 0;
^
0_0_33768803_6497.cpp:10:40: error: 's' was not declared in this scope
c[i][0] = c[i][1] = f[i] = s[i] = r[i] = v[i] = st[i] = 0;
^
0_0_33768803_6497.cpp:10:47: error: 'r' was not declared in this scope
c[i][0] = c[i][1] = f[i] = s[i] = r[i] = v[i] = st[i] = 0;
^
0_0_33768803_6497.cpp:10:54: error: 'v' was not declared in this scope
c[i][0] = c[i][1] = f[i] = s[i] = r[i] = v[i] = st[i] = 0;
^
0_0_33768803_6497.cpp:10:61: error: 'st' was not declared in this scope
c[i][0] = c[i][1] = f[i] = s[i] = r[i] = v[i] = st[i] = 0;
^
0_0_33768803_6497.cpp: In member function 'bool LCT::nroot(int)':
0_0_33768803_6497.cpp:14:16: error: 'c' was not declared in this scope
return c[f[x]][0] == x || c[f[x]][1] == x;
^
0_0_33768803_6497.cpp:14:18: error: 'f' was not declared in this scope
return c[f[x]][0] == x || c[f[x]][1] == x;
^
0_0_33768803_6497.cpp: In member function 'void LCT::pushup(int)':
0_0_33768803_6497.cpp:18:9: error: 's' was not declared in this scope
s[x] = s[lc] ^ s[rc] ^ v[x];
^
0_0_33768803_6497.cpp:3:12: error: 'c' was not declared in this scope
#define lc c[x][0]
^
0_0_33768803_6497.cpp:18:18: note: in expansion of macro 'lc'
s[x] = s[lc] ^ s[rc] ^ v[x];
^
0_0_33768803_6497.cpp:18:32: error: 'v' was not declared in this scope
s[x] = s[lc] ^ s[rc] ^ v[x];
^
0_0_33768803_6497.cpp: In member function 'void LCT::pushr(int)':
0_0_33768803_6497.cpp:3:12: error: 'c' was not declared in this scope
#define lc c[x][0]
^
0_0_33768803_6497.cpp:22:17: note: in expansion of macro 'lc'
int t = lc;
^
0_0_33768803_6497.cpp:25:9: error: 'r' was not declared in this scope
r[x] ^= 1;
^
0_0_33768803_6497.cpp: In member function 'void LCT::pushdown(int)':
0_0_33768803_6497.cpp:29:13: error: 'r' was not declared in this scope
if (r[x])
^
0_0_33768803_6497.cpp:3:12: error: 'c' was not declared in this scope
#define lc c[x][0]
^
0_0_33768803_6497.cpp:31:17: note: in expansion of macro 'lc'
if (lc)
^
0_0_33768803_6497.cpp:4:12: error: 'c' was not declared in this scope
#define rc c[x][1]
^
0_0_33768803_6497.cpp:33:17: note: in expansion of macro 'rc'
if (rc)
^
0_0_33768803_6497.cpp: In member function 'void LCT::rotate(int)':
0_0_33768803_6497.cpp:40:17: error: 'f' was not declared in this scope
int y = f[x], z = f[y], k = c[y][1] == x, w = c[x][!k];
^
0_0_33768803_6497.cpp:42:13: error: 'c' was not declared in this scope
c[z][c[z][1] == y] = x;
^
0_0_33768803_6497.cpp:42:15: error: 'z' was not declared in this scope
c[z][c[z][1] == y] = x;
^
0_0_33768803_6497.cpp:43:9: error: 'c' was not declared in this scope
c[x][!k] = y;
^
0_0_33768803_6497.cpp:43:15: error: 'k' was not declared in this scope
c[x][!k] = y;
^
0_0_33768803_6497.cpp:44:19: error: 'w' was not declared in this scope
c[y][k] = w; //额外注意if(nroot(y))语句,此处不判断会引起致命错误(与普通Splay的区别2)
^
0_0_33768803_6497.cpp:48:16: error: 'z' was not declared in this scope
f[x] = z;
^
0_0_33768803_6497.cpp: In member function 'void LCT::splay(int)':
0_0_33768803_6497.cpp:54:9: error: 'st' was not declared in this scope
st[++z] = y; //st为栈,暂存当前点到根的整条路径,pushdown时一定要从上往下放标记(与普通Splay的区别4)
^
0_0_33768803_6497.cpp:56:27: error: 'f' was not declared in this scope
st[++z] = y = f[y];
^
0_0_33768803_6497.cpp:61:17: error: 'f' was not declared in this scope
y = f[x];
^
0_0_33768803_6497.cpp:64:25: error: 'c' was not declared in this scope
rotate((c[y][0] == x) ^ (c[z][0] == y) ? x : y);
^
0_0_33768803_6497.cpp: In member function 'void LCT::access(int)':
0_0_33768803_6497.cpp:76:32: error: 'f' was not declared in this scope
for (int y = 0; x; x = f[y = x])
^
0_0_33768803_6497.cpp:4:12: error: 'c' was not declared in this scope
#define rc c[x][1]
^
0_0_33768803_6497.cpp:77:23: note: in expansion of macro 'rc'
splay(x), rc = y, pushup(x);
^
0_0_33768803_6497.cpp: In member function 'int LCT::findroot(int)':
0_0_33768803_6497.cpp:3:12: error: 'c' was not declared in this scope
#define lc c[x][0]
^
0_0_33768803_6497.cpp:89:16: note: in expansion of macro 'lc'
while (lc)
^
0_0_33768803_6497.cpp: In member function 'void LCT::link(int, int)':
0_0_33768803_6497.cpp:104:13: error: 'f' was not declared in this scope
f[x] = y;
^
0_0_33768803_6497.cpp: In member function 'void LCT::cut(int, int)':
0_0_33768803_6497.cpp:109:33: error: 'f' was not declared in this scope
if (findroot(y) == x && f[y] == x && !c[y][0])
^
0_0_33768803_6497.cpp:109:47: error: 'c' was not declared in this scope
if (findroot(y) == x && f[y] == x && !c[y][0])
^
|