0_0_30295759_4028.cpp:26:30: error: invalid use of non-static data member 'LCA::maxlen'
const int maxlen = 7e4 + 7; // n / BASE
^
0_0_30295759_4028.cpp:30:15: error: from this location
int STsta[maxlen]; // 每块的状态
^
0_0_30295759_4028.cpp:26:30: error: invalid use of non-static data member 'LCA::maxlen'
const int maxlen = 7e4 + 7; // n / BASE
^
0_0_30295759_4028.cpp:31:17: error: from this location
int msn[23][maxlen]; // st表
^
0_0_30295759_4028.cpp:26:30: error: invalid use of non-static data member 'LCA::maxlen'
const int maxlen = 7e4 + 7; // n / BASE
^
0_0_30295759_4028.cpp:32:12: error: from this location
int lg[maxlen]; // logi 向下取整
^
0_0_30295759_4028.cpp:217:22: error: invalid use of non-static data member 'LCA::maxn'
int maxn[23][maxn];
^
0_0_30295759_4028.cpp:218:18: error: from this location
int minn[23][maxn];
^
0_0_30295759_4028.cpp:217:22: error: invalid use of non-static data member 'LCA::maxn'
int maxn[23][maxn];
^
0_0_30295759_4028.cpp:219:13: error: from this location
int lgg[maxn];
^
0_0_30295759_4028.cpp: In member function 'void LCA::pre()':
0_0_30295759_4028.cpp:36:9: error: 'lg' was not declared in this scope
lg[1] = 0;
^
0_0_30295759_4028.cpp: In member function 'void LCA::work()':
0_0_30295759_4028.cpp:125:17: error: 'msn' was not declared in this scope
msn[0][i / BASE] = i; //块内最值地址
^
0_0_30295759_4028.cpp:126:17: error: 'STsta' was not declared in this scope
STsta[i / BASE] = 0; //状态序列
^
0_0_30295759_4028.cpp:130:33: error: 'msn' was not declared in this scope
if(dep[i] < dep[msn[0][i / BASE]])
^
0_0_30295759_4028.cpp:133:21: error: 'STsta' was not declared in this scope
STsta[i / BASE] |= 1 << (i % BASE - 1); //大于差分序列为1
^
0_0_30295759_4028.cpp:141:26: error: 'msn' was not declared in this scope
int b1 = msn[j - 1][i], b2 = msn[j - 1][i + (1 << (j - 1))];
^
0_0_30295759_4028.cpp:142:43: error: 'b2' was not declared in this scope
msn[j][i] = dep[b1] < dep[b2]? b1 : b2;
^
0_0_30295759_4028.cpp: In member function 'int LCA::querymin(int, int)':
0_0_30295759_4028.cpp:151:37: error: 'STsta' was not declared in this scope
return idl * BASE + sta[STsta[idl]][L % BASE][R % BASE];
^
0_0_30295759_4028.cpp:154:39: error: 'STsta' was not declared in this scope
int b1 = idl * BASE + sta[STsta[idl]][L % BASE][BASE - 1];
^
0_0_30295759_4028.cpp:160:25: error: 'lg' was not declared in this scope
int c = lg[idr - idl - 1];
^
0_0_30295759_4028.cpp:161:26: error: 'msn' was not declared in this scope
int b1 = msn[c][idl + 1];
^
0_0_30295759_4028.cpp: In member function 'void LCA::rangework()':
0_0_30295759_4028.cpp:222:9: error: 'lca' was not declared in this scope
lca.ST_buildmin(n);
^
0_0_30295759_4028.cpp: In member function 'void LCA::ST_buildmin(int)':
0_0_30295759_4028.cpp:237:9: error: 'lgg' was not declared in this scope
lgg[0] = -1;
^
0_0_30295759_4028.cpp:245:13: error: 'minn' was not declared in this scope
minn[0][i] = ind[i];
^
0_0_30295759_4028.cpp:249:21: error: 'minn' was not declared in this scope
minn[i][j] = min(minn[i - 1][j], minn[i - 1][j + bin[i - 1]]);
^
0_0_30295759_4028.cpp: In member function 'void LCA::ST_buildmax(int)':
0_0_30295759_4028.cpp:257:29: error: 'lgg' was not declared in this scope
for(int i = 1; i <= lgg[n]; i++)
^
0_0_30295759_4028.cpp: In member function 'int LCA::ST_min(int, int)':
0_0_30295759_4028.cpp:266:20: error: 'lgg' was not declared in this scope
int temp = lgg[y - x + 1];
^
0_0_30295759_4028.cpp:268:20: error: 'minn' was not declared in this scope
return min(minn[temp][x], minn[temp][y - bin[temp] + 1]);
^
0_0_30295759_4028.cpp: In member function 'int LCA::ST_max(int, int)':
0_0_30295759_4028.cpp:274:20: error: 'lgg' was not declared in this scope
int temp = lgg[y - x + 1];
^
|