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_21545034_8304.cpp: In function 'void dijkstra(int)':
0_0_21545034_8304.cpp:10:15: error: 'maxn' was not declared in this scope
     int visit[maxn],i,j,min,next=x;  
               ^
0_0_21545034_8304.cpp:11:12: error: 'visit' was not declared in this scope
     memset(visit,0,sizeof(visit));  
            ^
0_0_21545034_8304.cpp:11:33: error: 'memset' was not declared in this scope
     memset(visit,0,sizeof(visit));  
                                 ^
0_0_21545034_8304.cpp:12:16: error: 'n' was not declared in this scope
     for(i=1;i<=n;++i)  
                ^
0_0_21545034_8304.cpp:13:9: error: 'dis' was not declared in this scope
         dis[i]=map[x][i].dt;  
         ^
0_0_21545034_8304.cpp:15:16: error: 'n' was not declared in this scope
     for(i=2;i<=n;++i)  
                ^
0_0_21545034_8304.cpp:17:13: error: 'INF' was not declared in this scope
         min=INF;  
             ^
0_0_21545034_8304.cpp:20:27: error: 'dis' was not declared in this scope
             if(!visit[j]&&dis[j]<min)  
                           ^
0_0_21545034_8304.cpp:29:27: error: 'dis' was not declared in this scope
             if(!visit[j]&&dis[j]>dis[next]+map[next][j].dt)  
                           ^
0_0_21545034_8304.cpp: In function 'int main()':
0_0_21545034_8304.cpp:36:21: error: 'n' was not declared in this scope
  while(~scanf("%d",&n,&m))
                     ^
0_0_21545034_8304.cpp:36:24: error: 'm' was not declared in this scope
  while(~scanf("%d",&n,&m))
                        ^
0_0_21545034_8304.cpp:38:7: error: 'inr' was not declared in this scope
   for(inr i=1;i<=m;i++)
       ^
0_0_21545034_8304.cpp:38:15: error: 'i' was not declared in this scope
   for(inr i=1;i<=m;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-11-30 07:51:17, Gzip enabled