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_39648434_20380.cpp: In member function 'long long int MCMF<type>::dijkstra(long long int&, long long int&)':
0_0_39648434_20380.cpp:250:9: error: reference to 'priority_queue' is ambiguous
  250 |         priority_queue<pair<type, int>, vector<pair<type, int>>, greater<>> q;
      |         ^~~~~~~~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/queue:66,
                 from .\stdc++.h:157:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:498:11: note: candidates are: 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
  498 |     class priority_queue
      |           ^~~~~~~~~~~~~~
In file included from 0_0_39648434_20380.cpp:3:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/priority_queue.hpp:84:9: note:                 'template<class _Tv, class Cmp_Fn, class Tag, class _Alloc> class __gnu_pbds::priority_queue'
   84 |   class priority_queue
      |         ^~~~~~~~~~~~~~
0_0_39648434_20380.cpp:250:39: error: expected primary-expression before ',' token
  250 |         priority_queue<pair<type, int>, vector<pair<type, int>>, greater<>> q;
      |                                       ^
0_0_39648434_20380.cpp:250:64: error: expected primary-expression before ',' token
  250 |         priority_queue<pair<type, int>, vector<pair<type, int>>, greater<>> q;
      |                                                                ^
0_0_39648434_20380.cpp:250:74: error: expected primary-expression before '>' token
  250 |         priority_queue<pair<type, int>, vector<pair<type, int>>, greater<>> q;
      |                                                                          ^~
0_0_39648434_20380.cpp:250:77: error: 'q' was not declared in this scope
  250 |         priority_queue<pair<type, int>, vector<pair<type, int>>, greater<>> q;
      |                                                                             ^


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 08:04:51, Gzip enabled