0_0_32852546_28058.cpp: In function 'void dijkstra(int)':
0_0_32852546_28058.cpp:3:12: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_32852546_28058.cpp:3:29: error: 'memset' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_32852546_28058.cpp:4:24: error: 'n' was not declared in this scope
for(int i = 1;i <= n;i++)
^
0_0_32852546_28058.cpp:6:9: error: 'dis' was not declared in this scope
dis[i] = G[x][i];
^
0_0_32852546_28058.cpp:6:18: error: 'G' was not declared in this scope
dis[i] = G[x][i];
^
0_0_32852546_28058.cpp:8:5: error: 'dis' was not declared in this scope
dis[x] = 0;
^
0_0_32852546_28058.cpp:10:19: error: 'n' was not declared in this scope
for(int i=1;i<n;i++)
^
0_0_32852546_28058.cpp:12:20: error: 'inf' was not declared in this scope
int minl = inf,k=-1;
^
0_0_32852546_28058.cpp:18:17: error: 'k' was not declared in this scope
k = j;
^
0_0_32852546_28058.cpp:21:12: error: 'k' was not declared in this scope
if(k==-1)break;
^
0_0_32852546_28058.cpp:22:13: error: 'k' was not declared in this scope
vis[k]=1;
^
0_0_32852546_28058.cpp:25:36: error: 'G' was not declared in this scope
if(!vis[j] && dis[k] + G[k][j] < dis[j])//松弛操作
^
|