0_0_14268446_16633.cpp:4:7: error: 'MAXN' does not name a type
const MAXN = 3000;
^
0_0_14268446_16633.cpp:5:11: error: 'MAXN' was not declared in this scope
int match[MAXN];
^
0_0_14268446_16633.cpp:6:9: error: 'MAXN' was not declared in this scope
int vis[MAXN];
^
0_0_14268446_16633.cpp:7:10: error: 'MAXN' was not declared in this scope
int maze[MAXN][MAXN];//i关于j的邻接矩阵关系
^
0_0_14268446_16633.cpp:7:16: error: 'MAXN' was not declared in this scope
int maze[MAXN][MAXN];//i关于j的邻接矩阵关系
^
0_0_14268446_16633.cpp: In function 'int dfs(int)':
0_0_14268446_16633.cpp:10:21: error: 'm' was not declared in this scope
for(int i = 1;i <= m;i++)
^
0_0_14268446_16633.cpp:12:6: error: 'maze' was not declared in this scope
if(maze[u][i] && !vis[i])
^
0_0_14268446_16633.cpp:12:21: error: 'vis' was not declared in this scope
if(maze[u][i] && !vis[i])
^
0_0_14268446_16633.cpp:15:7: error: 'match' was not declared in this scope
if(match[i] == -1 || dfs(match[i]))
^
0_0_14268446_16633.cpp: In function 'int main()':
0_0_14268446_16633.cpp:28:9: error: 'match' was not declared in this scope
memset(match,-1,sizeof(match));
^
0_0_14268446_16633.cpp:28:31: error: 'memset' was not declared in this scope
memset(match,-1,sizeof(match));
^
0_0_14268446_16633.cpp:29:21: error: 'n' was not declared in this scope
for(int i = 1;i <= n;i++)
^
0_0_14268446_16633.cpp:31:10: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_14268446_16633.cpp:32:13: error: 'res' was not declared in this scope
if(dfs(i))res++;
^
|