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_23180900_30237.cpp: In function 'double min_cost_flow(int, int, int)':
0_0_23180900_30237.cpp:49:2: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
  >q;
  ^
0_0_23180900_30237.cpp:49:2: error:   expected a type, got 'vector'
0_0_23180900_30237.cpp:49:2: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
0_0_23180900_30237.cpp:49:2: error:   expected a type, got 'greater'
0_0_23180900_30237.cpp:49:4: error: invalid type in declaration before ';' token
  >q;
    ^
0_0_23180900_30237.cpp:52:11: error: request for member 'push' in 'q', which is of non-class type 'int'
         q.push(P(dist[s],s));
           ^
0_0_23180900_30237.cpp:53:18: error: request for member 'empty' in 'q', which is of non-class type 'int'
         while(!q.empty())
                  ^
0_0_23180900_30237.cpp:55:19: error: request for member 'top' in 'q', which is of non-class type 'int'
             P p=q.top();
                   ^
0_0_23180900_30237.cpp:56:15: error: request for member 'pop' in 'q', which is of non-class type 'int'
             q.pop();
               ^
0_0_23180900_30237.cpp:67:23: error: request for member 'push' in 'q', which is of non-class type 'int'
                     q.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-11-23 04:41:17, Gzip enabled