terror.cpp: In function ‘int main()’:
terror.cpp:7:59: error: conversion from ‘std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}’ to non-scalar type ‘std::set<unsigned int>::const_iterator {aka std::_Rb_tree_const_iterator<unsigned int>}’ requested
terror.cpp:7:74: error: no match for ‘operator!=’ in ‘ci != s.std::set<_Key, _Compare, _Alloc>::end<int, std::less<int>, std::allocator<int> >()’
terror.cpp:7:74: note: candidates are:
In file included from /usr/include/c++/4.7/set:60:0,
from terror.cpp:1:
/usr/include/c++/4.7/bits/stl_tree.h:301:7: note: bool std::_Rb_tree_const_iterator<_Tp>::operator!=(const _Self&) const [with _Tp = unsigned int; std::_Rb_tree_const_iterator<_Tp>::_Self = std::_Rb_tree_const_iterator<unsigned int>]
/usr/include/c++/4.7/bits/stl_tree.h:301:7: note: no known conversion for argument 1 from ‘std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}’ to ‘const _Self& {aka const std::_Rb_tree_const_iterator<unsigned int>&}’
In file included from /usr/include/c++/4.7/set:62:0,
from terror.cpp:1:
/usr/include/c++/4.7/bits/stl_multiset.h:709:5: note: template<class _Key, class _Compare, class _Alloc> bool std::operator!=(const std::multiset<_Key, _Compare, _Alloc>&, const std::multiset<_Key, _Compare, _Alloc>&)
/usr/include/c++/4.7/bits/stl_multiset.h:709:5: note: template argument deduction/substitution failed:
terror.cpp:7:74: note: ‘std::set<unsigned int>::const_iterator {aka std::_Rb_tree_const_iterator<unsigned int>}’ is not derived from ‘const std::multiset<_Key, _Compare, _Alloc>’
In file included from /usr/include/c++/4.7/set:61:0,
from terror.cpp:1:
/usr/include/c++/4.7/bits/stl_set.h:728:5: note: template<class _Key, class _Compare, class _Alloc> bool std::operator!=(const std::set<_Key, _Compare, _Alloc>&, const std::set<_Key, _Compare, _Alloc>&)
/usr/include/c++/4.7/bits/stl_set.h:728:5: note: template argument deduction/substitution failed:
terror.cpp:7:74: note: ‘std::set<unsigned int>::const_iterator {aka std::_Rb_tree_const_iterator<unsigned int>}’ is not derived from ‘const std::set<_Key, _Compare, _Alloc>’
In file included from /usr/include/c++/4.7/set:60:0,
from terror.cpp:1:
/usr/include/c++/4.7/bits/stl_tree.h:883: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>&)
/usr/include/c++/4.7/bits/stl_tree.h:883:5: note: template argument deduction/substitution failed:
terror.cpp:7:74: note: ‘std::set<unsigned int>::const_iterator {aka std::_Rb_tree_const_iterator<unsigned int>}’ is not derived from ‘const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>’
In file included from /usr/include/c++/4.7/set:60:0,
from terror.cpp:1:
/usr/include/c++/4.7/bits/stl_tree.h:315:5: note: template<class _Val> bool std::operator!=(const std::_Rb_tree_iterator<_Tp>&, const std::_Rb_tree_const_iterator<_Val>&)
/usr/include/c++/4.7/bits/stl_tree.h:315:5: note: template argument deduction/substitution failed:
terror.cpp:7:74: note: ‘std::set<unsigned int>::const_iterator {aka std::_Rb_tree_const_iterator<unsigned int>}’ is not derived from ‘const std::_Rb_tree_iterator<_Tp>’
In file included from /usr/include/c++/4.7/bits/stl_tree.h:64:0,
from /usr/include/c++/4.7/set:60,
from terror.cpp:1:
/usr/include/c++/4.7/bits/allocator.h:134:5: note: template<class _Tp> bool std::operator!=(const std::allocator<_Tp1>&, const std::allocator<_Tp1>&)
/usr/include/c++/4.7/bits/allocator.h:134:5: note: template argument deduction/substitution failed:
terror.cpp:7:74: note: ‘std::set<unsigned int>::const_iterator {aka std::_Rb_tree_const_iterator<unsigned int>}’ is not derived from ‘const std::allocator<_Tp1>’
In file included from /usr/include/c++/4.7/bits/stl_tree.h:64:0,
from /usr/include/c++/4.7/set:60,
from terror.cpp:1:
/usr/include/c++/4.7/bits/allocator.h:129:5: note: template<class _T1, class _T2> bool std::operator!=(const std::allocator<_T1>&, const std::allocator<_T2>&)
/usr/include/c++/4.7/bits/allocator.h:129:5: note: template argument deduction/substitution failed:
terror.cpp:7:74: note: ‘std::set<unsigned int>::const_iterator {aka std::_Rb_tree_const_iterator<unsigned int>}’ is not derived from ‘const std::allocator<_T1>’
In file included from /usr/include/c++/4.7/bits/stl_algobase.h:68:0,
from /usr/include/c++/4.7/bits/stl_tree.h:63,
from /usr/include/c++/4.7/set:60,
from terror.cpp:1:
/usr/include/c++/4.7/bits/stl_iterator.h:355:5: note: template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::reverse_iterator<_IteratorL>&, const std::reverse_iterator<_IteratorR>&)
/usr/include/c++/4.7/bits/stl_iterator.h:355:5: note: template argument deduction/substitution failed:
terror.cpp:7:74: note: ‘std::set<unsigned int>::const_iterator {aka std::_Rb_tree_const_iterator<unsigned int>}’ is not derived from ‘const std::reverse_iterator<_IteratorL>’
In file included from /usr/include/c++/4.7/bits/stl_algobase.h:68:0,
from /usr/include/c++/4.7/bits/stl_tree.h:63,
from /usr/include/c++/4.7/set:60,
from terror.cpp:1:
/usr/include/c++/4.7/bits/stl_iterator.h:305:5: note: template<class _Iterator> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
/usr/include/c++/4.7/bits/stl_iterator.h:305:5: note: template argument deduction/substitution failed:
terror.cpp:7:74: note: ‘std::set<unsigned int>::const_iterator {aka std::_Rb_tree_const_iterator<unsigned int>}’ is not derived from ‘const std::reverse_iterator<_Iterator>’
In file included from /usr/include/c++/4.7/bits/stl_algobase.h:65:0,
from /usr/include/c++/4.7/bits/stl_tree.h:63,
from /usr/include/c++/4.7/set:60,
from terror.cpp:1:
/usr/include/c++/4.7/bits/stl_pair.h:225:5: note: template<class _T1, class _T2> bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
/usr/include/c++/4.7/bits/stl_pair.h:225:5: note: template argument deduction/substitution failed:
terror.cpp:7:74: note: ‘std::set<unsigned int>::const_iterator {aka std::_Rb_tree_const_iterator<unsigned int>}’ is not derived from ‘const std::pair<_T1, _T2>’
|