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_28559793_21058.cpp: In function 'int main()':
0_0_28559793_21058.cpp:58:20: error: no matching function for call to 'swap(__gnu_pbds::priority_queue<int, std::less<int>, __gnu_pbds::pairing_heap_tag>&, __gnu_pbds::priority_queue<int, std::less<int>, __gnu_pbds::binomial_heap_tag>&)'
       swap(swp,q[i]);
                    ^
0_0_28559793_21058.cpp:58:20: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_28559793_21058.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:166:5: note: template<class _Tp> void std::swap(_Tp&, _Tp&)
     swap(_Tp& __a, _Tp& __b)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:166:5: note:   template argument deduction/substitution failed:
0_0_28559793_21058.cpp:58:20: note:   deduced conflicting types for parameter '_Tp' ('__gnu_pbds::priority_queue<int, std::less<int>, __gnu_pbds::pairing_heap_tag>' and '__gnu_pbds::priority_queue<int, std::less<int>, __gnu_pbds::binomial_heap_tag>')
       swap(swp,q[i]);
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_28559793_21058.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:185:5: note: template<class _Tp, long long unsigned int _Nm> void std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm])
     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:185:5: note:   template argument deduction/substitution failed:
0_0_28559793_21058.cpp:58:20: note:   mismatched types '_Tp [_Nm]' and '__gnu_pbds::priority_queue<int, std::less<int>, __gnu_pbds::pairing_heap_tag>'
       swap(swp,q[i]);
                    ^
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/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_28559793_21058.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:254:5: note: template<class _T1, class _T2> void std::swap(std::pair<_T1, _T2>&, std::pair<_T1, _T2>&)
     swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:254:5: note:   template argument deduction/substitution failed:
0_0_28559793_21058.cpp:58:20: note:   '__gnu_pbds::priority_queue<int, std::less<int>, __gnu_pbds::pairing_heap_tag>' is not derived from 'std::pair<_T1, _T2>'
       swap(swp,q[i]);
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_28559793_21058.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2736:5: note: template<class _CharT, class _Traits, class _Alloc> void std::swap(std::basic_string<_CharT, _Traits, _Alloc>&, std::basic_string<_CharT, _Traits, _Alloc>&)
     swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2736:5: note:   template argument deduction/substitution failed:
0_0_28559793_21058.cpp:58:20: note:   '__gnu_pbds::priority_queue<int, std::less<int>, __gnu_pbds::pairing_heap_tag>' is not derived from 'std::basic_string<_CharT, _Traits, _Alloc>'
       swap(swp,q[i]);
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_28559793_21058.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1559:5: note: template<class _Tp, class _Alloc> void std::swap(std::vector<_Tp, _Alloc>&, std::vector<_Tp, _Alloc>&)
     swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1559:5: note:   template argument deduction/substitution failed:
0_0_28559793_21058.cpp:58:20: note:   '__gnu_pbds::priority_queue<int, std::less<int>, __gnu_pbds::pairing_heap_tag>' is not derived from 'std::vector<_Tp, _Alloc>'
       swap(swp,q[i]);
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_28559793_21058.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:112:3: note: void std::swap(std::_Bit_reference, std::_Bit_reference)
   swap(_Bit_reference __x, _Bit_reference __y) noexcept
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:112:3: note:   no known conversion for argument 1 from '__gnu_pbds::priority_queue<int, std::less<int>, __gnu_pbds::pairing_heap_tag>' to 'std::_Bit_reference'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:120:3: note: void std::swap(std::_Bit_reference, bool&)
   swap(_Bit_reference __x, bool& __y) noexcept
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:120:3: note:   no known conversion for argument 1 from '__gnu_pbds::priority_queue<int, std::less<int>, __gnu_pbds::pairing_heap_tag>' to 'std::_Bit_reference'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:128:3: note: void std::swap(bool&, std::_Bit_reference)
   swap(bool& __x, _Bit_reference __y) noexcept
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:128:3: note:   no known conversion for argument 1 from '__gnu_pbds::priority_queue<int, std::less<int>, __gnu_pbds::pairing_heap_tag>' to 'bool&'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:67,
                 from 0_0_28559793_21058.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:2083:5: note: template<class _Tp, class _Alloc> void std::swap(std::deque<_Tp, _Alloc>&, std::deque<_Tp, _Alloc>&)
     swap(deque<_Tp,_Alloc>& __x, deque<_Tp,


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-16 11:48:25, Gzip enabled