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_17782559_14030.cpp: In function 'void SPFA(int, int)':
0_0_17782559_14030.cpp:3:5: error: 'queue' was not declared in this scope
     queue<int> Q;  
     ^
0_0_17782559_14030.cpp:3:11: error: expected primary-expression before 'int'
     queue<int> Q;  
           ^
0_0_17782559_14030.cpp:4:25: error: 'n' was not declared in this scope
     for(int i = 1; i <= n; i++)  
                         ^
0_0_17782559_14030.cpp:5:5: error: 'dist' was not declared in this scope
     dist[i] = i==s ? 0 : INF;   
     ^
0_0_17782559_14030.cpp:5:26: error: 'INF' was not declared in this scope
     dist[i] = i==s ? 0 : INF;   
                          ^
0_0_17782559_14030.cpp:6:12: error: 'vis' was not declared in this scope
     memset(vis, false, sizeof(vis));  
            ^
0_0_17782559_14030.cpp:6:35: error: 'memset' was not declared in this scope
     memset(vis, false, sizeof(vis));  
                                   ^
0_0_17782559_14030.cpp:8:5: error: 'Q' was not declared in this scope
     Q.push(s);  
     ^
0_0_17782559_14030.cpp:14:21: error: 'head' was not declared in this scope
         for(int i = head[u]; i != -1; i = edge[i].next)  
                     ^
0_0_17782559_14030.cpp:14:43: error: 'edge' was not declared in this scope
         for(int i = head[u]; i != -1; i = edge[i].next)  
                                           ^
0_0_17782559_14030.cpp:16:13: error: 'Edge' was not declared in this scope
             Edge E = edge[i];  
             ^
0_0_17782559_14030.cpp:17:16: error: 'dist' was not declared in this scope
             if(dist[E.to] > dist[u] + E.val)  
                ^
0_0_17782559_14030.cpp:17:21: error: 'E' was not declared in this scope
             if(dist[E.to] > dist[u] + E.val)  
                     ^
0_0_17782559_14030.cpp:20:17: error: 'pre' was not declared in this scope
                 pre[E.to] = u;  
                 ^


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-12-02 13:02:47, Gzip enabled