0_0_36759818_14981.cpp:13:24: error: expected ']' before ';' token
int S[MAX_N], H[[MAX_N];//S记录该列中1元素的个数
^
0_0_36759818_14981.cpp:17:20: error: expected ']' before '[' token
double lens[[MAX_N][[MAX_N], diss[MAX_NUM];//坑呀,居然忘记N*N了
^
0_0_36759818_14981.cpp: In member function 'void Dancing_Links_X::init(int, int)':
0_0_36759818_14981.cpp:32:30: error: invalid conversion from 'int' to 'void*' [-fpermissive]
memset(H, 0, sizeof H);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstring:42:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:48,
from 0_0_36759818_14981.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/string.h:43:18: note: initializing argument 1 of 'void* memset(void*, int, size_t)'
void * __cdecl memset(void *_Dst,int _Val,size_t _Size);
^
0_0_36759818_14981.cpp: In member function 'void Dancing_Links_X::link(int, int)':
0_0_36759818_14981.cpp:44:16: error: invalid types 'int[int]' for array subscript
if (H[x] == 0) H[x] = mapp[cnt].left = mapp[cnt].right = cnt;
^
0_0_36759818_14981.cpp:44:27: error: invalid types 'int[int]' for array subscript
if (H[x] == 0) H[x] = mapp[cnt].left = mapp[cnt].right = cnt;
^
0_0_36759818_14981.cpp:46:38: error: invalid types 'int[int]' for array subscript
mapp[cnt].left = mapp[H[x]].left;
^
0_0_36759818_14981.cpp:47:34: error: invalid types 'int[int]' for array subscript
mapp[cnt].right = H[x];
^
0_0_36759818_14981.cpp:48:26: error: invalid types 'int[int]' for array subscript
mapp[mapp[H[x]].left].right = cnt;
^
0_0_36759818_14981.cpp:49:21: error: invalid types 'int[int]' for array subscript
mapp[H[x]].left = cnt;
^
0_0_36759818_14981.cpp: In member function 'int Dancing_Links_X::leave()':
0_0_36759818_14981.cpp:71:18: error: 'MAXSIZE' was not declared in this scope
bool vis[MAXSIZE]; memset(vis, false, sizeof vis);
^
0_0_36759818_14981.cpp:71:35: error: 'vis' was not declared in this scope
bool vis[MAXSIZE]; memset(vis, false, sizeof vis);
^
0_0_36759818_14981.cpp: In function 'bool check(int)':
0_0_36759818_14981.cpp:108:23: error: invalid types 'double[int]' for array subscript
if (lens[i][j] <= diss[mid])
^
0_0_36759818_14981.cpp:108:31: error: 'diss' was not declared in this scope
if (lens[i][j] <= diss[mid])
^
0_0_36759818_14981.cpp: In function 'void solve()':
0_0_36759818_14981.cpp:122:19: error: invalid types 'double[int]' for array subscript
lens[i][j] = dis(i, j);
^
0_0_36759818_14981.cpp:123:13: error: 'diss' was not declared in this scope
diss[size++] = lens[i][j];
^
0_0_36759818_14981.cpp:123:34: error: invalid types 'double[int]' for array subscript
diss[size++] = lens[i][j];
^
0_0_36759818_14981.cpp:125:10: error: 'diss' was not declared in this scope
sort(diss, diss + size);
^
|