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_36982555_2007.cpp: In function 'int main()':
0_0_36982555_2007.cpp:79:8: error: no match for 'operator=' (operand types are 'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' and 'std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}')
      it=se[ls[xx]].upper_bound(x);
        ^
0_0_36982555_2007.cpp:79:8: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60:0,
                 from 0_0_36982555_2007.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:242:12: note: std::_Rb_tree_const_iterator<int>& std::_Rb_tree_const_iterator<int>::operator=(const std::_Rb_tree_const_iterator<int>&)
     struct _Rb_tree_const_iterator
            ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:242:12: note:   no known conversion for argument 1 from 'std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}' to 'const std::_Rb_tree_const_iterator<int>&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:242:12: note: std::_Rb_tree_const_iterator<int>& std::_Rb_tree_const_iterator<int>::operator=(std::_Rb_tree_const_iterator<int>&&)
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:242:12: note:   no known conversion for argument 1 from 'std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}' to 'std::_Rb_tree_const_iterator<int>&&'
0_0_36982555_2007.cpp:80:11: error: no match for 'operator==' (operand types are 'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' and 'std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}')
      if(it==se[ls[xx]].begin() )
           ^
0_0_36982555_2007.cpp:80:11: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60:0,
                 from 0_0_36982555_2007.cpp:3:
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 = int; std::_Rb_tree_const_iterator<_Tp>::_Self = std::_Rb_tree_const_iterator<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 'std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}' to 'const _Self& {aka const std::_Rb_tree_const_iterator<int>&}'
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++/set:60,
                 from 0_0_36982555_2007.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:214:5: note: template<class _T1, class _T2> constexpr bool std::operator==(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
     operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:214:5: note:   template argument deduction/substitution failed:
0_0_36982555_2007.cpp:80:30: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::pair<_T1, _T2>'
      if(it==se[ls[xx]].begin() )
                              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67: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++/set:60,
                 from 0_0_36982555_2007.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:292:5: note: template<class _Iterator> bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
     operator==(const reverse_iterator<_Iterator>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:292:5: note:   template argument deduction/substitution failed:
0_0_36982555_2007.cpp:80:30: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::reverse_iterator<_Iterator>'
      if(it==se[ls[xx]].begin() )
                              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67: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++/set:60,
                 from 0_0_36982555_2007.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:342:5: note: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
     operator==(const reverse_iterator<_IteratorL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:342:5: note:   template argument deduction/substitution failed:
0_0_36982555_2007.cpp:80:30: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::reverse_iterator<_Iterator>'
      if(it==se[ls[xx]].begin() )
                              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67: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++/set:60,
                 from 0_0_36982555_2007.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1048:5: note: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&)
     operator==(const move_iterator<_IteratorL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1048:5: note:   template argument deduction/substitution failed:
0_0_36982555_2007.cpp:80:30: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::move_iterator<_Iterator>'
      if(it==se[ls[xx]].begin() )
                              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67: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++/set:60,
                 from 0_0_36982555_2007.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1054:5: note: template<class _Iterator> bool std::operator==(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
     operator==(const move_iterator<_Iterator>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1054:5: note:   template argument deduction/substitution failed:
0_0_36982555_2007.cpp:80:30: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::move_iterator<_Iterator>'
      if(it==se[ls[xx]].begin() )
                              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
                 from 0_0_36982555_2007.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:128:5: note: template<class _T1, class _T2> bool std::operator==(const std::allocator<_Tp1>&, const std::allocator<_T2>&)
     operator==(const allocator<_T1>&, const allocator<_T2>&)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:128:5: note:   template argument deduction/substitution failed:
0_0_36982555_2007.cpp:80:30: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::allocator<_Tp1>'
      if(it==se[ls[xx]].begin() )
                              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
                 from 0_0_36982555_2007.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:133:5: note: template<class _Tp> bool std::operator==(const std::allocator<_Tp1>&, const std::allocator<_Tp1>&)
     operator==(const allocator<_Tp>&, const allocator<_Tp>&)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:133:5: note:   template argument deduction/substitution failed:
0_0_36982555_2007.cpp:80:30: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::allocator<_Tp1>'
      if(it==se[ls[xx]].begin() )
                              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60:0,
                 from 0_0_36982555_2007.cpp:3:
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:
0_0_36982555_2007.cpp:80:30: note:   'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::_Rb_tree_iterator<_Tp>'
      if(it==se[ls[xx]]


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-06-26 15:46:31, Gzip enabled