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_37096257_16836.cpp: In instantiation of 'T Set<T>::top() [with T = Node]':
0_0_37096257_16836.cpp:77:27:   required from here
0_0_37096257_16836.cpp:35:43: error: no match for 'operator==' (operand types are '<unresolved overloaded function type>' and 'const value_type {aka const Node}')
   while(!q.empty() && !p.empty() && p.top == q.top()) p.pop(), q.pop();
                                           ^
0_0_37096257_16836.cpp:35:43: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_set:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:116,
                 from 0_0_37096257_16836.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_set.h:1343:5: note: template<class _Value, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>&, const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>&)
     operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_set.h:1343:5: note:   template argument deduction/substitution failed:
0_0_37096257_16836.cpp:35:43: note:   'const value_type& (std::priority_queue<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >::*)() const {aka const Node& (std::priority_queue<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >::*)() const}' is not derived from 'const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>'
   while(!q.empty() && !p.empty() && p.top == q.top()) p.pop(), q.pop();
                                           ^
0_0_37096257_16836.cpp:35:43: note:   could not resolve address from overloaded function '((Set<Node>*)this)->Set<Node>::p.std::priority_queue<_Tp, _Sequence, _Compare>::top<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_set:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:116,
                 from 0_0_37096257_16836.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_set.h:1331:5: note: template<class _Value, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_set<_Value, _Hash, _Pred, _Alloc>&, const std::unordered_set<_Value, _Hash, _Pred, _Alloc>&)
     operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_set.h:1331:5: note:   template argument deduction/substitution failed:
0_0_37096257_16836.cpp:35:43: note:   'const value_type& (std::priority_queue<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >::*)() const {aka const Node& (std::priority_queue<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >::*)() const}' is not derived from 'const std::unordered_set<_Value, _Hash, _Pred, _Alloc>'
   while(!q.empty() && !p.empty() && p.top == q.top()) p.pop(), q.pop();
                                           ^
0_0_37096257_16836.cpp:35:43: note:   could not resolve address from overloaded function '((Set<Node>*)this)->Set<Node>::p.std::priority_queue<_Tp, _Sequence, _Compare>::top<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
                 from 0_0_37096257_16836.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:1462:5: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>&, const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>&)
     operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:1462:5: note:   template argument deduction/substitution failed:
0_0_37096257_16836.cpp:35:43: note:   'const value_type& (std::priority_queue<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >::*)() const {aka const Node& (std::priority_queue<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >::*)() const}' is not derived from 'const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>'
   while(!q.empty() && !p.empty() && p.top == q.top()) p.pop(), q.pop();
                                           ^
0_0_37096257_16836.cpp:35:43: note:   could not resolve address from overloaded function '((Set<Node>*)this)->Set<Node>::p.std::priority_queue<_Tp, _Sequence, _Compare>::top<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
                 from 0_0_37096257_16836.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:1450:5: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&, const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&)
     operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:1450:5: note:   template argument deduction/substitution failed:
0_0_37096257_16836.cpp:35:43: note:   'const value_type& (std::priority_queue<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >::*)() const {aka const Node& (std::priority_queue<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >::*)() const}' is not derived from 'const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>'
   while(!q.empty() && !p.empty() && p.top == q.top()) p.pop(), q.pop();
                                           ^
0_0_37096257_16836.cpp:35:43: note:   could not resolve address from overloaded function '((Set<Node>*)this)->Set<Node>::p.std::priority_queue<_Tp, _Sequence, _Compare>::top<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:109:0,
                 from 0_0_37096257_16836.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/scoped_allocator:443:5: note: template<class _OutA1, class _OutA2, class ... _InA> bool std::operator==(const std::scoped_allocator_adaptor<_OutA1, _InA ...>&, const std::scoped_allocator_adaptor<_InnerHead, _InnerTail ...>&)
     operator==(const scoped_allocator_adaptor<_OutA1, _InA...>& __a,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/scoped_allocator:443:5: note:   template argument deduction/substitution failed:
0_0_37096257_16836.cpp:35:43: note:   'const value_type& (std::priority_queue<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >::*)() const {aka const Node& (std::priority_queue<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >::*)() const}' is not derived from 'const std::scoped_allocator_adaptor<_OutA1, _InA ...>'
   while(!q.empty() && !p.empty() && p.top == q.top()) p.pop(), q.pop();
                                           ^
0_0_37096257_16836.cpp:35:43: note:   could not resolve address from overloaded function '((Set<Node>*)this)->Set<Node>::p.std::priority_queue<_Tp, _Sequence, _Compare>::top<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/regex:58:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:108,
                 from 0_0_37096257_16836.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:1920:5: note: template<class _Bi_iter, class _Alloc> bool std::operator==(const std::match_results<_BiIter, _Alloc>&, const std::match_results<_BiIter, _Alloc>&)
     operator==(const match_results<_Bi_iter, _Alloc>& __m1,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:1920:5: note:   template argument deduction/substitution failed:
0_0_37096257_16836.cpp:35:43: note:   'const value_type& (std::priority_queue<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >::*)() const {aka const Node& (std::priority_queue<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >::*)() const}' is not derived from 'const std::match_results<_BiIter, _Alloc>'
   while(!q.empty() && !p.empty() && p.top == q.top()) p.pop(), q.pop();
                                           ^
0_0_37096257_16836.cpp:35:43: note:   could not resolve address from overloaded function '((Set<Node>*)this)->Set<Node>::p.std::priority_queue<_Tp, _Sequence, _Compare>::top<Node, std::vector<Node, std::allocator<Node> >, std::less<Node> >'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/regex:58:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:108,
                 from 0_0_37096257_16836.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:1400:5: note: template<class _Bi_iter> bool std::operator==(const std::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)
     operator==(const sub_match<_Bi_iter>& __lhs,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:1400:5: note:   template argument deduction/substitution failed:
0_0_37096257_16836.cpp:35:43: note:   'const value_t


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-24 23:38:53, Gzip enabled