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_17765664_11723.cpp: In function 'void Dijkstra(int, int)':
0_0_17765664_11723.cpp:3:5: error: 'vis' was not declared in this scope
     vis[s]=1;
     ^
0_0_17765664_11723.cpp:4:20: error: 'n' was not declared in this scope
     for(int i=1;i<=n;i++)f[i]=Map[s][i];
                    ^
0_0_17765664_11723.cpp:4:26: error: 'f' was not declared in this scope
     for(int i=1;i<=n;i++)f[i]=Map[s][i];
                          ^
0_0_17765664_11723.cpp:4:31: error: 'Map' was not declared in this scope
     for(int i=1;i<=n;i++)f[i]=Map[s][i];
                               ^
0_0_17765664_11723.cpp:5:5: error: 'f' was not declared in this scope
     f[s]=0;
     ^
0_0_17765664_11723.cpp:7:19: error: 'n' was not declared in this scope
     for(int l=1;l<n;l++)
                   ^
0_0_17765664_11723.cpp:9:17: error: 'inf' was not declared in this scope
         int Min=inf;
                 ^
0_0_17765664_11723.cpp:17:45: error: 'Map' was not declared in this scope
             if(!vis[i])f[i]=min(f[i],f[pos]+Map[pos][i]);
                                             ^
0_0_17765664_11723.cpp:17:56: error: 'min' was not declared in this scope
             if(!vis[i])f[i]=min(f[i],f[pos]+Map[pos][i]);
                                                        ^


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-07-05 08:56:25, Gzip enabled