0_0_29414446_21584.cpp:17:8: error: 'N' was not declared in this scope
} edge[N*N];
^
0_0_29414446_21584.cpp:17:10: error: 'N' was not declared in this scope
} edge[N*N];
^
0_0_29414446_21584.cpp:18:14: error: 'N' was not declared in this scope
int cnt,head[N],n;
^
0_0_29414446_21584.cpp:19:9: error: 'N' was not declared in this scope
int vis[N],d[N],num[N];
^
0_0_29414446_21584.cpp:19:14: error: 'N' was not declared in this scope
int vis[N],d[N],num[N];
^
0_0_29414446_21584.cpp:19:21: error: 'N' was not declared in this scope
int vis[N],d[N],num[N];
^
0_0_29414446_21584.cpp: In function 'void init()':
0_0_29414446_21584.cpp:23:9: error: 'head' was not declared in this scope
mem(head,-1);
^
0_0_29414446_21584.cpp:8:25: note: in definition of macro 'mem'
#define mem(a,b) memset(a,b,sizeof(a))
^
0_0_29414446_21584.cpp: In function 'void addedge(int, int, int)':
0_0_29414446_21584.cpp:27:5: error: 'edge' was not declared in this scope
edge[cnt].v=v,edge[cnt].w=w;
^
0_0_29414446_21584.cpp:28:20: error: 'head' was not declared in this scope
edge[cnt].next=head[u];
^
0_0_29414446_21584.cpp: In function 'void spfa(int)':
0_0_29414446_21584.cpp:34:12: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_29414446_21584.cpp:35:12: error: 'num' was not declared in this scope
memset(num,0,sizeof(num));
^
0_0_29414446_21584.cpp:43:9: error: 'd' was not declared in this scope
d[i]=i==s?100:-INF;
^
0_0_29414446_21584.cpp:53:22: error: 'd' was not declared in this scope
if(num[u]>n) d[u]=INF;//如果u是正环内的点 则能量值可以为INF
^
0_0_29414446_21584.cpp:54:19: error: 'head' was not declared in this scope
for(int i=head[u]; i!=-1; i=edge[i].next)
^
0_0_29414446_21584.cpp:54:37: error: 'edge' was not declared in this scope
for(int i=head[u]; i!=-1; i=edge[i].next)
^
0_0_29414446_21584.cpp:57:16: error: 'd' was not declared in this scope
if(d[u]+w>0&&d[v]<d[u]+w)//保证中途能量不为非正数
^
0_0_29414446_21584.cpp:57:21: error: 'w' was not declared in this scope
if(d[u]+w>0&&d[v]<d[u]+w)//保证中途能量不为非正数
^
0_0_29414446_21584.cpp: In function 'int main()':
0_0_29414446_21584.cpp:88:12: error: 'd' was not declared in this scope
if(d[n]>0) printf("winnable\n");
^
|