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_21010686_31573.cpp: In function 'int main()':
0_0_21010686_31573.cpp:23:25: error: no match for 'operator==' (operand types are 'std::multiset<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}' and 'long long int')
     if(it==dat.end()||it==NULL)
                         ^
0_0_21010686_31573.cpp:23:25: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60:0,
                 from 0_0_21010686_31573.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:311:7: note: bool std::_Rb_tree_const_iterator<_Tp>::operator==(const _Self&) const [with _Tp = long long int; std::_Rb_tree_const_iterator<_Tp>::_Self = std::_Rb_tree_const_iterator<long long int>]
       operator==(const _Self& __x) const _GLIBCXX_NOEXCEPT
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:311:7: note:   no known conversion for argument 1 from 'long long int' to 'const _Self& {aka const std::_Rb_tree_const_iterator<long long int>&}'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:62:0,
                 from 0_0_21010686_31573.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:777:5: note: template<class _Key, class _Compare, class _Alloc> bool std::operator==(const std::multiset<_Key, _Compare, _Alloc>&, const std::multiset<_Key, _Compare, _Alloc>&)
     operator==(const multiset<_Key, _Compare, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:777:5: note:   template argument deduction/substitution failed:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/stdint.h:32:0,
                 from GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/stdint.h:9,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdint:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:380,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_21010686_31573.cpp:1:
0_0_21010686_31573.cpp:23:27: note:   'std::multiset<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}' is not derived from 'const std::multiset<_Key, _Compare, _Alloc>'
     if(it==dat.end()||it==NULL)
                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:61:0,
                 from 0_0_21010686_31573.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:793:5: note: template<class _Key, class _Compare, class _Alloc> bool std::operator==(const std::set<_Key, _Compare, _Alloc>&, const std::set<_Key, _Compare, _Alloc>&)
     operator==(const set<_Key, _Compare, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:793:5: note:   template argument deduction/substitution failed:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/stdint.h:32:0,
                 from GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/stdint.h:9,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdint:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:380,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_21010686_31573.cpp:1:
0_0_21010686_31573.cpp:23:27: note:   'std::multiset<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}' is not derived from 'const std::set<_Key, _Compare, _Alloc>'
     if(it==dat.end()||it==NULL)
                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60:0,
                 from 0_0_21010686_31573.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:970:5: note: template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> bool std::operator==(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)
     operator==(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:970:5: note:   template argument deduction/substitution failed:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/stdint.h:32:0,
                 from GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/stdint.h:9,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdint:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:380,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_21010686_31573.cpp:1:
0_0_21010686_31573.cpp:23:27: note:   'std::multiset<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}' is not derived from 'const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>'
     if(it==dat.end()||it==NULL)
                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60:0,
                 from 0_0_21010686_31573.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:323:5: note: template<class _Val> bool std::operator==(const std::_Rb_tree_iterator<_Tp>&, const std::_Rb_tree_const_iterator<_Val>&)
     operator==(const _Rb_tree_iterator<_Val>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:323:5: note:   template argument deduction/substitution failed:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/stdint.h:32:0,
                 from GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/stdint.h:9,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdint:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:380,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_21010686_31573.cpp:1:
0_0_21010686_31573.cpp:23:27: note:   'std::multiset<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}' is not derived from 'const std::_Rb_tree_iterator<_Tp>'
     if(it==dat.end()||it==NULL)
                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:51:0,
                 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 0_0_21010686_31573.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.tcc:2030:5: note: template<class _RealType1> bool std::operator==(const std::normal_distribution<_RealType>&, const std::normal_distribution<_RealType>&)
     operator==(const std::normal_distribution<_RealType>& __d1,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.tcc:2030:5: note:   template argument deduction/substitution failed:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/stdint.h:32:0,
                 from GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/stdint.h:9,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdint:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:380,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_21010686_31573.cpp:1:
0_0_21010686_31573.cpp:23:27: note:   'std::multiset<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}' is not derived from 'const std::normal_distribution<_RealType>'
     if(it==dat.end()||it==NULL)
                           ^
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 0_0_21010686_31573.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1511:5: note: template<class _Tp, class _Alloc> bool std::operator==(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
     operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1511:5: note:   template argument deduction/substitution failed:
I


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-17 18:45:02, Gzip enabled