0_0_25789071_14852.cpp:30:30: error: stray '#' in program
int tmp = lx[x] + ly[y] − g[x][y];
^
0_0_25789071_14852.cpp:33:24: error: stray '#' in program
if(linker[y] == −1 || DFS(linker[y])) {
^
0_0_25789071_14852.cpp:43:18: error: stray '#' in program
memset(linker,−1,sizeof(linker));
^
0_0_25789071_14852.cpp:46:14: error: stray '#' in program
lx[i] = −INF;
^
0_0_25789071_14852.cpp:65:18: error: stray '#' in program
lx[i] −= d;
^
0_0_25789071_14852.cpp:68:24: error: stray '#' in program
else slack[i] −= d;
^
0_0_25789071_14852.cpp:76:49: error: stray '#' in program
for(int i = 0; i < ny; i++) if(linker[i] != −1) res += g[linker[i]][i];
^
0_0_25789071_14852.cpp:13:1: error: expected unqualified-id before numeric constant
1 /* KM 算法
^
0_0_25789071_14852.cpp:22:7: error: 'N' was not declared in this scope
int g[N][N];//二分图描述
^
0_0_25789071_14852.cpp:22:10: error: 'N' was not declared in this scope
int g[N][N];//二分图描述
^
0_0_25789071_14852.cpp:23:12: error: 'N' was not declared in this scope
int linker[N],lx[N],ly[N];//y 中各点匹配状态,x,y 中的点标号
^
0_0_25789071_14852.cpp:23:18: error: 'N' was not declared in this scope
int linker[N],lx[N],ly[N];//y 中各点匹配状态,x,y 中的点标号
^
0_0_25789071_14852.cpp:23:24: error: 'N' was not declared in this scope
int linker[N],lx[N],ly[N];//y 中各点匹配状态,x,y 中的点标号
^
0_0_25789071_14852.cpp:24:11: error: 'N' was not declared in this scope
int slack[N];
^
0_0_25789071_14852.cpp:25:11: error: 'N' was not declared in this scope
bool visx[N],visy[N];
^
0_0_25789071_14852.cpp:25:19: error: 'N' was not declared in this scope
bool visx[N],visy[N];
^
0_0_25789071_14852.cpp: In function 'bool DFS(int)':
0_0_25789071_14852.cpp:27:3: error: 'visx' was not declared in this scope
visx[x] = true;
^
0_0_25789071_14852.cpp:29:8: error: 'visy' was not declared in this scope
if(visy[y])continue;
^
0_0_25789071_14852.cpp:30:15: error: 'lx' was not declared in this scope
int tmp = lx[x] + ly[y] − g[x][y];
^
0_0_25789071_14852.cpp:30:23: error: 'ly' was not declared in this scope
int tmp = lx[x] + ly[y] − g[x][y];
^
0_0_25789071_14852.cpp:30:37: error: 'g' was not declared in this scope
int tmp = lx[x] + ly[y] − g[x][y];
^
0_0_25789071_14852.cpp:32:7: error: 'visy' was not declared in this scope
visy[y] = true;
^
0_0_25789071_14852.cpp:33:10: error: 'linker' was not declared in this scope
if(linker[y] == −1 || DFS(linker[y])) {
^
0_0_25789071_14852.cpp:33:25: error: lvalue required as unary '&' operand
if(linker[y] == −1 || DFS(linker[y])) {
^
0_0_25789071_14852.cpp:33:29: error: expected ')' before ';' token
if(linker[y] == −1 || DFS(linker[y])) {
^
0_0_25789071_14852.cpp:33:39: error: 'linker' was not declared in this scope
if(linker[y] == −1 || DFS(linker[y])) {
^
0_0_25789071_14852.cpp:37:15: error: 'slack' was not declared in this scope
} else if(slack[y] > tmp)
^
0_0_25789071_14852.cpp: In function 'int KM()':
0_0_25789071_14852.cpp:43:10: error: 'linker' was not declared in this scope
memset(linker,−1,sizeof(linker));
^
0_0_25789071_14852.cpp:43:19: error: lvalue required as unary '&' operand
memset(linker,−1,sizeof(linker));
^
0_0_25789071_14852.cpp:44:10: error: 'ly' was not declared in this scope
memset(ly,0,sizeof(ly));
^
0_0_25789071_14852.cpp:46:5: error: 'lx' was not declared in this scope
lx[i] = −INF;
^
0_0_25789071_14852.cpp:46:15: error: lvalue required as unary '&' operand
lx[i] = −INF;
^
0_0_25789071_14852.cpp:48:10: error: 'g' was not declared in this scope
if(g[i][j] > lx[i])
^
0_0_25789071_14852.cpp:54:7: error: 'slack' was not declared in this scope
slack[i] = INF;
^
0_0_25789071_14852.cpp:56:14: error: 'visx' was not declared in this scope
memset(visx,false,sizeof(visx));
^
0_0_25789071_14852.cpp:57:14: error: 'visy' was not declared in this scope
memset(visy,false,sizeof(visy));
^
0_0_25789071_14852.cpp:61:28: error: 'slack' was not declared in this scope
if(!visy[i] && d > slack[i])
^
0_0_25789071_14852.cpp:65:11: error: 'lx' was not declared in this scope
lx[i] −= d;
^
0_0_25789071_14852.cpp:65:24: error: expected primary-expression before '=' token
lx[i] −= d;
^
0_0_25789071_14852.cpp:68:14: error: 'slack' was not declared in this scope
else slack[i] −= d;
^
0_0_25789071_14852.cpp:68:30: error: expected primary-expression before '=' token
else slack[i] −= d;
^
0_0_25789071_14852.cpp:76:50: error: lvalue required as unary '&' operand
for(int i = 0; i < ny; i++) if(linker[i] != −1) res += g[linker[i]][i];
^
0_0_25789071_14852.cpp:76:54: error: expected ')' before ';' token
for(int i = 0; i < ny; i++) if(linker[i] != −1) res += g[linker[i]][i];
^
0_0_25789071_14852.cpp:76:56: error: expected ';' before ')' token
for(int i = 0; i < ny; i++) if(linker[i] != −1) res += g[linker[i]][i];
^
0_0_25789071_14852.cpp: In function 'int main()':
0_0_25789071_14852.cpp:85:19: error: 'g' was not declared in this scope
scanf("%d",&g[i][j]);
^
|