0_0_24571708_27903.cpp: In function 'void dijkstra(int)':
0_0_24571708_27903.cpp:15:8: error: 'vis' was not declared in this scope
ms(vis,0)
^
0_0_24571708_27903.cpp:4:24: note: in definition of macro 'ms'
#define ms(n,i) memset(n,i,sizeof(n));
^
0_0_24571708_27903.cpp:16:12: error: 'n' was not declared in this scope
fi(i,1,n+1)dis[i]=(i==s?0:inf);
^
0_0_24571708_27903.cpp:5:33: note: in definition of macro 'fi'
#define fi(i,a,b) for(int i=a;i<b;i++)
^
0_0_24571708_27903.cpp:16:16: error: 'dis' was not declared in this scope
fi(i,1,n+1)dis[i]=(i==s?0:inf);
^
0_0_24571708_27903.cpp:17:12: error: 'n' was not declared in this scope
fi(i,1,n+1)
^
0_0_24571708_27903.cpp:5:33: note: in definition of macro 'fi'
#define fi(i,a,b) for(int i=a;i<b;i++)
^
0_0_24571708_27903.cpp:20:32: error: 'dis' was not declared in this scope
fi(y,1,n+1)if(!vis[y]&&dis[y]<=temp)temp=dis[x=y];
^
0_0_24571708_27903.cpp:22:20: error: 'dis' was not declared in this scope
fi(y,1,n+1)dis[y]=min(dis[y],dis[x]+w[x][y]);
^
0_0_24571708_27903.cpp:22:45: error: 'w' was not declared in this scope
fi(y,1,n+1)dis[y]=min(dis[y],dis[x]+w[x][y]);
^
0_0_24571708_27903.cpp: In function 'int main()':
0_0_24571708_27903.cpp:28:16: error: 'n' was not declared in this scope
while(cin>>n>>m&&n&&m)
^
0_0_24571708_27903.cpp:28:19: error: 'm' was not declared in this scope
while(cin>>n>>m&&n&&m)
^
0_0_24571708_27903.cpp:30:12: error: 'w' was not declared in this scope
ms(w,inf)
^
0_0_24571708_27903.cpp:4:24: note: in definition of macro 'ms'
#define ms(n,i) memset(n,i,sizeof(n));
^
0_0_24571708_27903.cpp:38:15: error: 'dis' was not declared in this scope
cout<<dis[n]<<endl;
^
|