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_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])//松弛操作
                                    ^


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-23 07:58:22, Gzip enabled