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_21602963_2573.cpp: In function 'void floyd()':
0_0_21602963_2573.cpp:3:4: error: 'd' was not declared in this scope
    d=inf;
    ^
0_0_21602963_2573.cpp:3:6: error: 'inf' was not declared in this scope
    d=inf;
      ^
0_0_21602963_2573.cpp:4:15: error: 'n' was not declared in this scope
    for(i=1;i<=n;i++)
               ^
0_0_21602963_2573.cpp:5:25: error: 'path' was not declared in this scope
       for(j=1;j<=n;j++) path[i][j]=j,dis[i][j]=e[i][j];
                         ^
0_0_21602963_2573.cpp:5:38: error: 'dis' was not declared in this scope
       for(j=1;j<=n;j++) path[i][j]=j,dis[i][j]=e[i][j];
                                      ^
0_0_21602963_2573.cpp:5:48: error: 'e' was not declared in this scope
       for(j=1;j<=n;j++) path[i][j]=j,dis[i][j]=e[i][j];
                                                ^
0_0_21602963_2573.cpp:7:15: error: 'n' was not declared in this scope
    for(k=1;k<=n;k++) {
               ^
0_0_21602963_2573.cpp:10:27: error: 'e' was not declared in this scope
       for(i=1;i<k;i++) if(e[i][k]!=inf)
                           ^
0_0_21602963_2573.cpp:12:16: error: 'dis' was not declared in this scope
             if(dis[i][j]==inf) continue;
                ^
0_0_21602963_2573.cpp:13:18: error: 'dis' was not declared in this scope
             if(d>dis[i][j]+e[i][k]+e[k][j]) {
                  ^
0_0_21602963_2573.cpp:16:16: error: 'len' was not declared in this scope
                len=0; s[0]=k; v=i;
                ^
0_0_21602963_2573.cpp:16:23: error: 's' was not declared in this scope
                len=0; s[0]=k; v=i;
                       ^
0_0_21602963_2573.cpp:17:41: error: 'path' was not declared in this scope
                while(v!=j) s[++len]=v,v=path[v][j];
                                         ^
0_0_21602963_2573.cpp:22:28: error: 'dis' was not declared in this scope
       for(i=1;i<=n;i++) if(dis[i][k]!=inf)
                            ^
0_0_21602963_2573.cpp:25:30: error: 'path' was not declared in this scope
                dis[i][j]=w , path[i][j]=path[i][k];
                              ^


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 11:43:06, Gzip enabled