0_0_18168361_21342.cpp:8:13: error: array bound is not an integer constant before ']' token
int N,A[maxn][maxn];
^
0_0_18168361_21342.cpp:8:19: error: array bound is not an integer constant before ']' token
int N,A[maxn][maxn];
^
0_0_18168361_21342.cpp:13:10: error: array bound is not an integer constant before ']' token
}E[2*maxn];
^
0_0_18168361_21342.cpp:16:18: error: array bound is not an integer constant before ']' token
int head[maxn],eid;
^
0_0_18168361_21342.cpp:17:18: error: array bound is not an integer constant before ']' token
bool vis[maxn];
^
0_0_18168361_21342.cpp:18:18: error: array bound is not an integer constant before ']' token
int n,To[maxn];
^
0_0_18168361_21342.cpp: In member function 'void TwoMatch::init(int)':
0_0_18168361_21342.cpp:22:31: error: 'head' was not declared in this scope
for(int i=1;i<=n;i++) head[i]=-1;
^
0_0_18168361_21342.cpp: In member function 'void TwoMatch::AddEdge(int, int)':
0_0_18168361_21342.cpp:26:9: error: 'E' was not declared in this scope
E[++eid].v=v; E[eid].next=head[u]; head[u]=eid;
^
0_0_18168361_21342.cpp:26:35: error: 'head' was not declared in this scope
E[++eid].v=v; E[eid].next=head[u]; head[u]=eid;
^
0_0_18168361_21342.cpp: In member function 'bool TwoMatch::dfs(int)':
0_0_18168361_21342.cpp:30:19: error: 'head' was not declared in this scope
for(int i=head[u];i!=-1;i=E[i].next)
^
0_0_18168361_21342.cpp:30:35: error: 'E' was not declared in this scope
for(int i=head[u];i!=-1;i=E[i].next)
^
0_0_18168361_21342.cpp:33:16: error: 'vis' was not declared in this scope
if(vis[v]) continue;
^
0_0_18168361_21342.cpp:34:13: error: 'vis' was not declared in this scope
vis[v]=true;
^
0_0_18168361_21342.cpp:35:16: error: 'To' was not declared in this scope
if(To[v]==-1||dfs(To[v]))
^
0_0_18168361_21342.cpp: In member function 'int TwoMatch::solve()':
0_0_18168361_21342.cpp:46:31: error: 'To' was not declared in this scope
for(int i=1;i<=n;i++) To[i]=-1;
^
0_0_18168361_21342.cpp:49:20: error: 'vis' was not declared in this scope
memset(vis,false,sizeof(vis));
^
0_0_18168361_21342.cpp: In function 'void Add(int, int)':
0_0_18168361_21342.cpp:63:25: error: 'A' was not declared in this scope
if(!in(nx,ny)||!A[nx][ny]) continue;
^
0_0_18168361_21342.cpp:64:20: error: 'A' was not declared in this scope
tm.AddEdge(A[x][y],A[x][y]+k);
^
0_0_18168361_21342.cpp: In function 'int main()':
0_0_18168361_21342.cpp:80:34: error: 'A' was not declared in this scope
if(maze[j]=='.') A[i][j]=0;
^
0_0_18168361_21342.cpp:81:22: error: 'A' was not declared in this scope
else A[i][j]=++k;
^
0_0_18168361_21342.cpp:85:37: error: 'A' was not declared in this scope
for(int j=0;j<N;j++) if(A[i][j]) Add(i,j);
^
|