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_15179508_25996.cpp: In function 'int main()':
0_0_15179508_25996.cpp:149:24: error: no match for 'operator=' (operand types are 'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' and 'std::set<int>::reverse_iterator {aka std::reverse_iterator<std::_Rb_tree_const_iterator<int> >}')
                     it1=st.rend();
                        ^
0_0_15179508_25996.cpp:149:24: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60:0,
                 from 0_0_15179508_25996.cpp:1:
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<int>::reverse_iterator {aka std::reverse_iterator<std::_Rb_tree_const_iterator<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<int>::reverse_iterator {aka std::reverse_iterator<std::_Rb_tree_const_iterator<int> >}' to 'std::_Rb_tree_const_iterator<int>&&'
0_0_15179508_25996.cpp:155:24: error: no match for 'operator=' (operand types are 'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' and 'std::set<int>::reverse_iterator {aka std::reverse_iterator<std::_Rb_tree_const_iterator<int> >}')
                     it1=st.rend();
                        ^
0_0_15179508_25996.cpp:155:24: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60:0,
                 from 0_0_15179508_25996.cpp:1:
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<int>::reverse_iterator {aka std::reverse_iterator<std::_Rb_tree_const_iterator<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<int>::reverse_iterator {aka std::reverse_iterator<std::_Rb_tree_const_iterator<int> >}' to 'std::_Rb_tree_const_iterator<int>&&'


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-30 19:01:03, Gzip enabled