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_16306579_926.cpp:11:9: error: 'maxa' was not declared in this scope
 int dis[maxa];
         ^
0_0_16306579_926.cpp:12:11: error: 'maxa' was not declared in this scope
 bool mark[maxa];
           ^
0_0_16306579_926.cpp:13:9: error: 'maxa' was not declared in this scope
 int map[maxa][maxa],cost[maxa][maxa];
         ^
0_0_16306579_926.cpp:13:15: error: 'maxa' was not declared in this scope
 int map[maxa][maxa],cost[maxa][maxa];
               ^
0_0_16306579_926.cpp:13:26: error: 'maxa' was not declared in this scope
 int map[maxa][maxa],cost[maxa][maxa];
                          ^
0_0_16306579_926.cpp:13:32: error: 'maxa' was not declared in this scope
 int map[maxa][maxa],cost[maxa][maxa];
                                ^
0_0_16306579_926.cpp:14:9: error: 'maxa' was not declared in this scope
 int mon[maxa];
         ^
0_0_16306579_926.cpp: In function 'void dijkstra(int)':
0_0_16306579_926.cpp:19:12: error: 'mark' was not declared in this scope
     memset(mark,0,sizeof(mark));
            ^
0_0_16306579_926.cpp:22:9: error: 'dis' was not declared in this scope
         dis[i]=map[s][i];
         ^
0_0_16306579_926.cpp:22:16: error: 'map' was not declared in this scope
         dis[i]=map[s][i];
                ^
0_0_16306579_926.cpp:23:9: error: 'mon' was not declared in this scope
         mon[i]=cost[s][i];
         ^
0_0_16306579_926.cpp:23:16: error: 'cost' was not declared in this scope
         mon[i]=cost[s][i];
                ^
0_0_16306579_926.cpp:25:5: error: 'dis' was not declared in this scope
     dis[s]=0;
     ^
0_0_16306579_926.cpp:26:5: error: 'mon' was not declared in this scope
     mon[s]=0;
     ^
0_0_16306579_926.cpp:30:13: error: 'INF' was not declared in this scope
         Min=INF;
             ^
0_0_16306579_926.cpp:43:28: error: 'map' was not declared in this scope
             if(!mark[p] && map[k][p]!=INF)
                            ^
0_0_16306579_926.cpp:49:35: error: 'cost' was not declared in this scope
                     mon[p]=mon[k]+cost[k][p];
                                   ^
0_0_16306579_926.cpp:51:48: error: 'cost' was not declared in this scope
                 else if(visa==dis[p] && mon[k]+cost[k][p]<mon[p])
                                                ^
0_0_16306579_926.cpp: In function 'int main()':
0_0_16306579_926.cpp:70:17: error: 'map' was not declared in this scope
                 map[i][j]=INF;
                 ^
0_0_16306579_926.cpp:70:27: error: 'INF' was not declared in this scope
                 map[i][j]=INF;
                           ^
0_0_16306579_926.cpp:71:17: error: 'cost' was not declared in this scope
                 cost[i][j]=INF;
                 ^
0_0_16306579_926.cpp:77:18: error: 'map' was not declared in this scope
             if(c<map[a][b])
                  ^
0_0_16306579_926.cpp:80:17: error: 'cost' was not declared in this scope
                 cost[a][b]=cost[b][a]=d;
                 ^
0_0_16306579_926.cpp:85:26: error: 'dis' was not declared in this scope
         printf("%d %d\n",dis[to],mon[to]);
                          ^
0_0_16306579_926.cpp:85:34: error: 'mon' was not declared in this scope
         printf("%d %d\n",dis[to],mon[to]);
                                  ^


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-06 06:14:58, Gzip enabled