0_0_16309610_6827.cpp:50:14: error: invalid use of non-static data member 'DLX::maxn'
int maxn=10010;
^
0_0_16309610_6827.cpp:51:11: error: from this location
int L[maxn],R[maxn],U[maxn],D[maxn];
^
0_0_16309610_6827.cpp:50:14: error: invalid use of non-static data member 'DLX::maxn'
int maxn=10010;
^
0_0_16309610_6827.cpp:51:19: error: from this location
int L[maxn],R[maxn],U[maxn],D[maxn];
^
0_0_16309610_6827.cpp:50:14: error: invalid use of non-static data member 'DLX::maxn'
int maxn=10010;
^
0_0_16309610_6827.cpp:51:27: error: from this location
int L[maxn],R[maxn],U[maxn],D[maxn];
^
0_0_16309610_6827.cpp:50:14: error: invalid use of non-static data member 'DLX::maxn'
int maxn=10010;
^
0_0_16309610_6827.cpp:51:35: error: from this location
int L[maxn],R[maxn],U[maxn],D[maxn];
^
0_0_16309610_6827.cpp:50:14: error: invalid use of non-static data member 'DLX::maxn'
int maxn=10010;
^
0_0_16309610_6827.cpp:52:13: error: from this location
int Row[maxn],Col[maxn];
^
0_0_16309610_6827.cpp:50:14: error: invalid use of non-static data member 'DLX::maxn'
int maxn=10010;
^
0_0_16309610_6827.cpp:52:23: error: from this location
int Row[maxn],Col[maxn];
^
0_0_16309610_6827.cpp:50:14: error: invalid use of non-static data member 'DLX::maxn'
int maxn=10010;
^
0_0_16309610_6827.cpp:53:11: error: from this location
int H[maxn],S[maxn];
^
0_0_16309610_6827.cpp:50:14: error: invalid use of non-static data member 'DLX::maxn'
int maxn=10010;
^
0_0_16309610_6827.cpp:53:19: error: from this location
int H[maxn],S[maxn];
^
0_0_16309610_6827.cpp: In member function 'void DLX::init(int)':
0_0_16309610_6827.cpp:60:13: error: 'U' was not declared in this scope
U[i]=D[i]=i;
^
0_0_16309610_6827.cpp:60:18: error: 'D' was not declared in this scope
U[i]=D[i]=i;
^
0_0_16309610_6827.cpp:61:13: error: 'L' was not declared in this scope
L[i]=i-1;R[i]=i+1;
^
0_0_16309610_6827.cpp:61:22: error: 'R' was not declared in this scope
L[i]=i-1;R[i]=i+1;
^
0_0_16309610_6827.cpp:62:13: error: 'S' was not declared in this scope
S[i]=0;
^
0_0_16309610_6827.cpp:64:9: error: 'L' was not declared in this scope
L[0]=m;R[m]=0;
^
0_0_16309610_6827.cpp:64:16: error: 'R' was not declared in this scope
L[0]=m;R[m]=0;
^
0_0_16309610_6827.cpp:65:13: error: 'H' was not declared in this scope
OFF(H);
^
0_0_16309610_6827.cpp:22:23: note: in definition of macro 'OFF'
#define OFF(x) memset(x,-1,sizeof(x))
^
0_0_16309610_6827.cpp: In member function 'void DLX::link(int, int)':
0_0_16309610_6827.cpp:72:9: error: 'Col' was not declared in this scope
Col[size]=col;Row[size]=row;
^
0_0_16309610_6827.cpp:72:23: error: 'Row' was not declared in this scope
Col[size]=col;Row[size]=row;
^
0_0_16309610_6827.cpp:73:9: error: 'S' was not declared in this scope
S[col]++;
^
0_0_16309610_6827.cpp:74:9: error: 'U' was not declared in this scope
U[size]=U[col];D[size]=col;
^
0_0_16309610_6827.cpp:74:24: error: 'D' was not declared in this scope
U[size]=U[col];D[size]=col;
^
0_0_16309610_6827.cpp:77:13: error: 'H' was not declared in this scope
if (H[row]!=-1) {
^
0_0_16309610_6827.cpp:78:13: error: 'R' was not declared in this scope
R[size]=H[row];
^
0_0_16309610_6827.cpp:79:13: error: 'L' was not declared in this scope
L[size]=L[H[row]];
^
0_0_16309610_6827.cpp:84:20: error: 'L' was not declared in this scope
H[row]=L[size]=R[size]=size;
^
0_0_16309610_6827.cpp:84:28: error: 'R' was not declared in this scope
H[row]=L[size]=R[size]=size;
^
0_0_16309610_6827.cpp: In member function 'void DLX::remove(int)':
0_0_16309610_6827.cpp:91:9: error: 'L' was not declared in this scope
L[R[c]]=L[c];
^
0_0_16309610_6827.cpp:91:11: error: 'R' was not declared in this scope
L[R[c]]=L[c];
^
0_0_16309610_6827.cpp:93:20: error: 'D' was not declared in this scope
for (int i=D[c];i!=c;i=D[i]) {
^
0_0_16309610_6827.cpp:95:17: error: 'U' was not declared in this scope
U[D[j]]=U[j];
^
0_0_16309610_6827.cpp:97:17: error: 'S' was not declared in this scope
S[Col[j]]--;
^
0_0_16309610_6827.cpp:97:19: error: 'Col' was not declared in this scope
S[Col[j]]--;
^
0_0_16309610_6827.cpp: In member function 'void DLX::resume(int)':
0_0_16309610_6827.cpp:102:9: error: 'R' was not declared in this scope
R[L[c]]=c;
^
0_0_16309610_6827.cpp:102:11: error: 'L' was not declared in this scope
R[L[c]]=c;
^
0_0_16309610_6827.cpp:104:20: error: 'U' was not declared in this scope
for (int i=U[c];i!=c;i=U[i]) {
^
0_0_16309610_6827.cpp:106:19: error: 'D' was not declared in this scope
U[D[j]]=j;
^
0_0_16309610_6827.cpp:108:17: error: 'S' was not declared in this scope
S[Col[j]]++;
^
0_0_16309610_6827.cpp:108:19: error: 'Col' was not declared in this scope
S[Col[j]]++;
^
0_0_16309610_6827.cpp: In member function 'bool DLX::dfs(int)':
0_0_16309610_6827.cpp:114:13: error: 'R' was not declared in this scope
if (R[0]==0) {
^
0_0_16309610_6827.cpp:120:29: error: 'R' was not declared in this scope
for (int i=0;i!=0;i=R[i])
^
0_0_16309610_6827.cpp:121:21: error: 'S' was not declared in this scope
if (Min>S[i]) Min=S[i],c=i;
^
0_0_16309610_6827.cpp:123:20: error: 'D' was not declared in this scope
for (int i=D[c];i!=c;i=D[i]) {
^
0_0_16309610_6827.cpp:124:22: error: 'Row' was not declared in this scope
Ans.push(Row[i]);
^
0_0_16309610_6827.cpp:125:24: error: 'R' was not declared in this scope
for (int j=R[i];j!=i;j=R[j]) {
^
0_0_16309610_6827.cpp:126:24: error: 'Col' was not declared in this scope
remove(Col[j]);
^
0_0_16309610_6827.cpp:129:24: error: 'L' was not declared in this scope
for (int j=L[i];j!=i;j=L[j]) {
^
0_0_16309610_6827.cpp:130:24: error: 'Col' was not declared in this scope
resume(Col[j]);
^
0_0_16309610_6827.cpp: In member function 'void DLX::del(int)':
0_0_16309610_6827.cpp:140:20: error: 'D' was not declared in this scope
for (int i=D[c];i!=c;i=D[i]) {
^
0_0_16309610_6827.cpp:142:13: error: 'L' was not declared in this scope
L[R[i]]=L[i];
^
0_0_16309610_6827.cpp:142:15: error: 'R' was not declared in this scope
L[R[i]]=L[i];
^
0_0_16309610_6827.cpp: In member function 'void DLX::rec(int)':
0_0_16309610_6827.cpp:148:20: error: 'U' was not declared in this scope
for (int i=U[c];i!=c;i=U[i]) {
^
0_0_16309610_6827.cpp:149:13: error: 'L' was not declared in this scope
L[R[i]]=R[L[i]]=i;
^
0_0_16309610_6827.cpp:149:15: error: 'R' was not declared in this scope
L[R[i]]=R[L[i]]=i;
^
0_0_16309610_6827.cpp: In member function 'int DLX::h()':
0_0_16309610_6827.cpp:155:20: error: 'R' was not declared in this scope
for (int i=R[0];i!=0;i=R[i]) if (!vis[i]) {
^
0_0_16309610_6827.cpp:158:24: error: 'D' was not declared in this scope
for (int j=D[i];j!=i;j=D[j])
^
0_0_16309610_6827.cpp:160:25: error: 'Col' was not declared in this scope
vis[Col[k]]=1;
^
0_0_16309610_6827.cpp: In member function 'void DLX::DFS(int)':
0_0_16309610_6827.cpp:166:13: error: 'R' was not declared in this scope
if (R[0]==0) {
^
0_0_16309610_6827.cpp:172:20: error: 'R' was not declared in this scope
for (int i=R[0];i!=0;i=R[i])
^
0_0_16309610_6827.cpp:173:21: error: 'S' was not declared in this scope
if (Min>S[i]) Min=S[i],c=i;
^
0_0_16309610_6827.cpp:175:20: error: 'D' was not declared in this scope
for (int i=D[c];i!=c;i=D[i]) {
^
0_0_16309610_6827.cpp:177:24: error: 'R' was not declared in this scope
for (int j=R[i];j!=i;j=R[j]) del(j);
^
0_0_16309610_6827.cpp:179:24: error: 'L' was not declared in this scope
for (int j=L[i];j!=i;j=L[j]) rec(j);
^
|