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_14247194_7426.cpp:44:9: error: 'N' was not declared in this scope
 int num[N];
         ^
0_0_14247194_7426.cpp: In function 'int spfa()':
0_0_14247194_7426.cpp:50:10: error: 'num' was not declared in this scope
     mset(num,INF);
          ^
0_0_14247194_7426.cpp:13:26: note: in definition of macro 'mset'
 #define mset(A,B) memset(A,B,sizeof(A))
                          ^
0_0_14247194_7426.cpp:61:24: error: 'n' was not declared in this scope
         for(int i=1;i<=n;i++)
                        ^
0_0_14247194_7426.cpp:63:21: error: expected primary-expression before '[' token
             if(!edge[at][i])continue;
                     ^
0_0_14247194_7426.cpp:64:35: error: expected primary-expression before '[' token
             int tmp = dis[at]+edge[at][i];
                                   ^
0_0_14247194_7426.cpp:71:36: error: expected primary-expression before '[' token
                 dis[i]=dis[at]+edge[at][i];
                                    ^
0_0_14247194_7426.cpp:78:16: error: 'n' was not declared in this scope
     return dis[n];
                ^


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-10-06 17:17:37, Gzip enabled