0_0_23232991_12032.cpp:15:11: error: 'maxnode' was not declared in this scope
int U[maxnode],D[maxnode],R[maxnode],L[maxnode],Row[maxnode],Col[maxnode];
^
0_0_23232991_12032.cpp:15:22: error: 'maxnode' was not declared in this scope
int U[maxnode],D[maxnode],R[maxnode],L[maxnode],Row[maxnode],Col[maxnode];
^
0_0_23232991_12032.cpp:15:33: error: 'maxnode' was not declared in this scope
int U[maxnode],D[maxnode],R[maxnode],L[maxnode],Row[maxnode],Col[maxnode];
^
0_0_23232991_12032.cpp:15:44: error: 'maxnode' was not declared in this scope
int U[maxnode],D[maxnode],R[maxnode],L[maxnode],Row[maxnode],Col[maxnode];
^
0_0_23232991_12032.cpp:15:57: error: 'maxnode' was not declared in this scope
int U[maxnode],D[maxnode],R[maxnode],L[maxnode],Row[maxnode],Col[maxnode];
^
0_0_23232991_12032.cpp:15:70: error: 'maxnode' was not declared in this scope
int U[maxnode],D[maxnode],R[maxnode],L[maxnode],Row[maxnode],Col[maxnode];
^
0_0_23232991_12032.cpp:16:11: error: 'maxR' was not declared in this scope
int H[maxR],S[maxC];
^
0_0_23232991_12032.cpp:16:19: error: 'maxC' was not declared in this scope
int H[maxR],S[maxC];
^
0_0_23232991_12032.cpp:18:13: error: 'maxR' was not declared in this scope
int ans[maxR];
^
0_0_23232991_12032.cpp:68:12: error: 'maxR' was not declared in this scope
bool v[maxR];
^
0_0_23232991_12032.cpp: In member function 'void DLX::init(int, int)':
0_0_23232991_12032.cpp:22:13: error: 'S' was not declared in this scope
S[i]=0;
^
0_0_23232991_12032.cpp:23:13: error: 'U' was not declared in this scope
U[i]=D[i]=i;
^
0_0_23232991_12032.cpp:23:18: error: 'D' was not declared in this scope
U[i]=D[i]=i;
^
0_0_23232991_12032.cpp:24:13: error: 'L' was not declared in this scope
L[i]=i-1;
^
0_0_23232991_12032.cpp:25:13: error: 'R' was not declared in this scope
R[i]=i+1;
^
0_0_23232991_12032.cpp:27:9: error: 'R' was not declared in this scope
R[m]=0; L[0]=m;
^
0_0_23232991_12032.cpp:27:17: error: 'L' was not declared in this scope
R[m]=0; L[0]=m;
^
0_0_23232991_12032.cpp:29:32: error: 'H' was not declared in this scope
for (int i=1;i<=n;i++) H[i]=-1;
^
0_0_23232991_12032.cpp: In member function 'void DLX::Link(int, int)':
0_0_23232991_12032.cpp:32:11: error: 'S' was not declared in this scope
++S[Col[++sz]=c];
^
0_0_23232991_12032.cpp:32:13: error: 'Col' was not declared in this scope
++S[Col[++sz]=c];
^
0_0_23232991_12032.cpp:33:9: error: 'Row' was not declared in this scope
Row[sz]=r;
^
0_0_23232991_12032.cpp:34:9: error: 'D' was not declared in this scope
D[sz]=D[c];
^
0_0_23232991_12032.cpp:35:9: error: 'U' was not declared in this scope
U[D[c]]=sz;
^
0_0_23232991_12032.cpp:38:13: error: 'H' was not declared in this scope
if (H[r]<0) H[r]=L[sz]=R[sz]=sz; else {
^
0_0_23232991_12032.cpp:38:26: error: 'L' was not declared in this scope
if (H[r]<0) H[r]=L[sz]=R[sz]=sz; else {
^
0_0_23232991_12032.cpp:38:32: error: 'R' was not declared in this scope
if (H[r]<0) H[r]=L[sz]=R[sz]=sz; else {
^
0_0_23232991_12032.cpp:39:13: error: 'R' was not declared in this scope
R[sz]=R[H[r]];
^
0_0_23232991_12032.cpp:40:13: error: 'L' was not declared in this scope
L[R[H[r]]]=sz;
^
0_0_23232991_12032.cpp: In member function 'void DLX::Remove(int)':
0_0_23232991_12032.cpp:53:20: error: 'D' was not declared in this scope
for (int i=D[c];i!=c;i=D[i]){
^
0_0_23232991_12032.cpp:54:13: error: 'L' was not declared in this scope
L[R[i]]=L[i];
^
0_0_23232991_12032.cpp:54:15: error: 'R' was not declared in this scope
L[R[i]]=L[i];
^
0_0_23232991_12032.cpp: In member function 'void DLX::Resume(int)':
0_0_23232991_12032.cpp:64:20: error: 'U' was not declared in this scope
for (int i=U[c];i!=c;i=U[i]){
^
0_0_23232991_12032.cpp:65:13: error: 'L' was not declared in this scope
L[R[i]]=R[L[i]]=i;
^
0_0_23232991_12032.cpp:65:15: error: 'R' was not declared in this scope
L[R[i]]=R[L[i]]=i;
^
0_0_23232991_12032.cpp: In member function 'int DLX::f()':
0_0_23232991_12032.cpp:71:20: error: 'R' was not declared in this scope
for (int c=R[0];c;c=R[c]) v[c]=true;
^
0_0_23232991_12032.cpp:71:35: error: 'v' was not declared in this scope
for (int c=R[0];c;c=R[c]) v[c]=true;
^
0_0_23232991_12032.cpp:72:20: error: 'R' was not declared in this scope
for (int c=R[0];c;c=R[c]){
^
0_0_23232991_12032.cpp:73:17: error: 'v' was not declared in this scope
if (v[c]){
^
0_0_23232991_12032.cpp:76:28: error: 'D' was not declared in this scope
for (int i=D[c];i!=c;i=D[i]) for (int j=R[i];j!=i;j=R[j]){
^
0_0_23232991_12032.cpp:77:23: error: 'Col' was not declared in this scope
v[Col[j]]=false;
^
0_0_23232991_12032.cpp: In member function 'bool DLX::Dance(int)':
0_0_23232991_12032.cpp:85:14: error: 'R' was not declared in this scope
if (!R[0]) {
^
0_0_23232991_12032.cpp:88:15: error: 'R' was not declared in this scope
int c=R[0];
^
0_0_23232991_12032.cpp:89:39: error: 'S' was not declared in this scope
for (int i=R[0];i;i=R[i]) if (S[i]<S[c]) c=i;
^
0_0_23232991_12032.cpp:91:20: error: 'D' was not declared in this scope
for (int i=D[c];i!=c;i=D[i]){
^
0_0_23232991_12032.cpp:95:24: error: 'L' was not declared in this scope
for (int j=L[i];j!=i;j=L[j]) Resume(j);
^
|