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_26882164_2940.cpp: In function 'void bfs()':
0_0_26882164_2940.cpp:342:31: error: no matching function for call to 'PII::PII(PII, PII)'
  pq.push(PII(PII(0,0),PII(x,y)));
                               ^
0_0_26882164_2940.cpp:342:31: note: candidates are:
0_0_26882164_2940.cpp:308:2: note: PII::PII(int, int)
  PII(int f, int s): first(f),second(s){}
  ^
0_0_26882164_2940.cpp:308:2: note:   no known conversion for argument 1 from 'PII' to 'int'
0_0_26882164_2940.cpp:307:2: note: PII::PII()
  PII(){}
  ^
0_0_26882164_2940.cpp:307:2: note:   candidate expects 0 arguments, 2 provided
0_0_26882164_2940.cpp:305:8: note: constexpr PII::PII(const PII&)
 struct PII{
        ^
0_0_26882164_2940.cpp:305:8: note:   candidate expects 1 argument, 2 provided
0_0_26882164_2940.cpp:305:8: note: constexpr PII::PII(PII&&)
0_0_26882164_2940.cpp:305:8: note:   candidate expects 1 argument, 2 provided
0_0_26882164_2940.cpp:343:12: error: 'class std::priority_queue<std::pair<PII, PII> >' has no member named 'ePIIty'
  while(!pq.ePIIty()){
            ^
0_0_26882164_2940.cpp:344:47: error: no matching function for call to 'std::pair<std::pair<int, int>, std::pair<int, int> >::pair(const value_type&)'
   pair<pair<int,int>,pair<int,int> >p(pq.top());
                                               ^
0_0_26882164_2940.cpp:344:47: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
                 from 0_0_26882164_2940.cpp:80:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:206:9: note: template<class ... _Args1, long long unsigned int ..._Indexes1, class ... _Args2, long long unsigned int ..._Indexes2> std::pair<_T1, _T2>::pair(std::tuple<_Args1 ...>&, std::tuple<_Args2 ...>&, std::_Index_tuple<_Indexes1 ...>, std::_Index_tuple<_Indexes2 ...>)
         pair(tuple<_Args1...>&, tuple<_Args2...>&,
         ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:206:9: note:   template argument deduction/substitution failed:
0_0_26882164_2940.cpp:344:47: note:   types 'std::tuple<_Args1 ...>' and 'const value_type {aka const std::pair<PII, PII>}' have incompatible cv-qualifiers
   pair<pair<int,int>,pair<int,int> >p(pq.top());
                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
                 from 0_0_26882164_2940.cpp:80:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:155:9: note: template<class ... _Args1, class ... _Args2> std::pair<_T1, _T2>::pair(std::piecewise_construct_t, std::tuple<_Args1 ...>, std::tuple<_Args2 ...>)
         pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>);
         ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:155:9: note:   template argument deduction/substitution failed:
0_0_26882164_2940.cpp:344:47: note:   cannot convert 'pq.std::priority_queue<_Tp, _Sequence, _Compare>::top<std::pair<PII, PII>, std::vector<std::pair<PII, PII>, std::allocator<std::pair<PII, PII> > >, std::less<std::pair<PII, PII> > >()' (type 'const value_type {aka const std::pair<PII, PII>}') to type 'std::piecewise_construct_t'
   pair<pair<int,int>,pair<int,int> >p(pq.top());
                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
                 from 0_0_26882164_2940.cpp:80:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:150:12: note: template<class _U1, class _U2, class> constexpr std::pair<_T1, _T2>::pair(std::pair<_U1, _U2>&&)
  constexpr pair(pair<_U1, _U2>&& __p)
            ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:150:12: note:   template argument deduction/substitution failed:
0_0_26882164_2940.cpp:344:47: note:   types 'std::pair<_T1, _T2>' and 'const value_type {aka const std::pair<PII, PII>}' have incompatible cv-qualifiers
   pair<pair<int,int>,pair<int,int> >p(pq.top());
                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
                 from 0_0_26882164_2940.cpp:80:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:144:12: note: template<class _U1, class _U2, class> constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&)
  constexpr pair(_U1&& __x, _U2&& __y)
            ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:144:12: note:   template argument deduction/substitution failed:
0_0_26882164_2940.cpp:344:47: note:   candidate expects 2 arguments, 1 provided
   pair<pair<int,int>,pair<int,int> >p(pq.top());
                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
                 from 0_0_26882164_2940.cpp:80:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:138:12: note: template<class _U2, class> constexpr std::pair<_T1, _T2>::pair(const _T1&, _U2&&)
  constexpr pair(const _T1& __x, _U2&& __y)
            ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:138:12: note:   template argument deduction/substitution failed:
0_0_26882164_2940.cpp:344:47: note:   cannot convert 'pq.std::priority_queue<_Tp, _Sequence, _Compare>::top<std::pair<PII, PII>, std::vector<std::pair<PII, PII>, std::allocator<std::pair<PII, PII> > >, std::less<std::pair<PII, PII> > >()' (type 'const value_type {aka const std::pair<PII, PII>}') to type 'const std::pair<int, int>&'
   pair<pair<int,int>,pair<int,int> >p(pq.top());
                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
                 from 0_0_26882164_2940.cpp:80:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:133:12: note: template<class _U1, class> constexpr std::pair<_T1, _T2>::pair(_U1&&, const _T2&)
  constexpr pair(_U1&& __x, const _T2& __y)
            ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:133:12: note:   template argument deduction/substitution failed:
0_0_26882164_2940.cpp:344:47: note:   candidate expects 2 arguments, 1 provided
   pair<pair<int,int>,pair<int,int> >p(pq.top());
                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
                 from 0_0_26882164_2940.cpp:80:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:128:17: note: constexpr std::pair<_T1, _T2>::pair(std::pair<_T1, _T2>&&) [with _T1 = std::pair<int, int>; _T2 = std::pair<int, int>]
       constexpr pair(pair&&) = default;
                 ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:128:17: note:   no known conversion for argument 1 from 'const value_type {aka const std::pair<PII, PII>}' to 'std::pair<std::pair<int, int>, std::pair<int, int> >&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:127:17: note: constexpr std::pair<_T1, _T2>::pair(const std::pair<_T1, _T2>&) [with _T1 = std::pair<int, int>; _T2 = std::pair<int, int>]
       constexpr pair(const pair&) = default;
                 ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:127:17: note:   no known conversion for argument 1 from 'const value_type {aka const std::pair<PII, PII>}' to 'const std::pair<std::pair<int, int>, std::pair<int, int> >&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:124:12: note: template<class _U1, class _U2, class> constexpr std::pair<_T1, _T2>::pair(const std::pair<_U1, _U2>&)
  constexpr pair(const pair<_U1, _U2>& __p)
            ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:124:12: note:   template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:121:38: error: no type named 'type' in 'struct std::enable_if<false, void>'
       template<class _U1, class _U2, class = typename
                                      ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:112:26: note: constexpr std::pair<_T1, _T2>::pair(const _T1&, const _T2&) [with _T1 = std::pair<int, int>; _T2 = std::pair<int, int>]
       _GLIBCXX_CONSTEXPR pair(const _T1& __a, const _T2& __b)
                          ^
GCC4.9.2/


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-01 09:44:25, Gzip enabled