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_21685932_3650.cpp:21:9: error: 'pair' does not name a type
 typedef pair<int,int> P;
         ^
0_0_21685932_3650.cpp: In function 'int min_cost_flow(int, int, int)':
0_0_21685932_3650.cpp:59:24: error: 'P' was not declared in this scope
         priority_queue<P, vector<P>, greater<P> > que;
                        ^
0_0_21685932_3650.cpp:59:34: error: the value of 'P' is not usable in a constant expression
         priority_queue<P, vector<P>, greater<P> > que;
                                  ^
0_0_21685932_3650.cpp:59:24: note: 'P' was not declared 'constexpr'
         priority_queue<P, vector<P>, greater<P> > que;
                        ^
0_0_21685932_3650.cpp:59:35: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
         priority_queue<P, vector<P>, greater<P> > que;
                                   ^
0_0_21685932_3650.cpp:59:35: error:   expected a type, got 'P'
0_0_21685932_3650.cpp:59:35: error: template argument 2 is invalid
0_0_21685932_3650.cpp:59:46: error: the value of 'P' is not usable in a constant expression
         priority_queue<P, vector<P>, greater<P> > que;
                                              ^
0_0_21685932_3650.cpp:59:24: note: 'P' was not declared 'constexpr'
         priority_queue<P, vector<P>, greater<P> > que;
                        ^
0_0_21685932_3650.cpp:59:47: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp> struct std::greater'
         priority_queue<P, vector<P>, greater<P> > que;
                                               ^
0_0_21685932_3650.cpp:59:47: error:   expected a type, got 'P'
0_0_21685932_3650.cpp:59:49: error: template argument 1 is invalid
         priority_queue<P, vector<P>, greater<P> > que;
                                                 ^
0_0_21685932_3650.cpp:59:49: error: template argument 2 is invalid
0_0_21685932_3650.cpp:59:49: error: template argument 3 is invalid
0_0_21685932_3650.cpp:59:54: error: invalid type in declaration before ';' token
         priority_queue<P, vector<P>, greater<P> > que;
                                                      ^
0_0_21685932_3650.cpp:62:13: error: request for member 'push' in 'que', which is of non-class type 'int'
         que.push(P(0,s));
             ^
0_0_21685932_3650.cpp:63:20: error: request for member 'empty' in 'que', which is of non-class type 'int'
         while(!que.empty()){
                    ^
0_0_21685932_3650.cpp:64:15: error: expected ';' before 'p'
             P p = que.top(); que.pop();
               ^
0_0_21685932_3650.cpp:64:34: error: request for member 'pop' in 'que', which is of non-class type 'int'
             P p = que.top(); que.pop();
                                  ^
0_0_21685932_3650.cpp:65:21: error: 'p' was not declared in this scope
             int v = p.second;
                     ^
0_0_21685932_3650.cpp:73:25: error: request for member 'push' in 'que', which is of non-class type 'int'
                     que.push(P(dist[e.to], e.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-10-26 05:25:20, Gzip enabled