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_18210814_14548.cpp:9:1: error: 'priority_queue' does not name a type
 priority_queue <nide> q;
 ^
0_0_18210814_14548.cpp: In function 'int dij(int, int, int)':
0_0_18210814_14548.cpp:12:12: error: 'q' was not declared in this scope
     while(!q.empty())
            ^
0_0_18210814_14548.cpp:15:9: error: 'dis' was not declared in this scope
         dis[i]=Inf,pre[i]=-1;
         ^
0_0_18210814_14548.cpp:15:16: error: 'Inf' was not declared in this scope
         dis[i]=Inf,pre[i]=-1;
                ^
0_0_18210814_14548.cpp:15:20: error: 'pre' was not declared in this scope
         dis[i]=Inf,pre[i]=-1;
                    ^
0_0_18210814_14548.cpp:16:5: error: 'dis' was not declared in this scope
     dis[s]=0;
     ^
0_0_18210814_14548.cpp:17:5: error: 'q' was not declared in this scope
     q.push(nide {s,dis[s]});
     ^
0_0_18210814_14548.cpp:22:19: error: 'head' was not declared in this scope
         for(int i=head[p1.v]; i!=-1; i=tu[i].next)
                   ^
0_0_18210814_14548.cpp:22:40: error: 'tu' was not declared in this scope
         for(int i=head[p1.v]; i!=-1; i=tu[i].next)
                                        ^
0_0_18210814_14548.cpp:28:17: error: 'pre' was not declared in this scope
                 pre[v]=i;
                 ^
0_0_18210814_14548.cpp:33:16: error: 'Inf' was not declared in this scope
     if(dis[t]==Inf)
                ^


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-09-29 08:20:30, Gzip enabled