F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-17 08:38:17, Gzip enabled