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_25830556_18734.cpp: In function 'int main()':
0_0_25830556_18734.cpp:59:32: error: no matching function for call to 'std::list<int>::insert(std::list<int>::iterator, std::list<int>&)'
     p[u].insert(p[u].end(),p[v]);
                                ^
0_0_25830556_18734.cpp:59:32: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/List:64:0,
                 from 0_0_25830556_18734.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/list.tcc:98:5: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::const_iterator, const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<int>; std::list<_Tp, _Alloc>::const_iterator = std::_List_const_iterator<int>; std::list<_Tp, _Alloc>::value_type = int]
     list<_Tp, _Alloc>::
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/list.tcc:98:5: note:   no known conversion for argument 2 from 'std::list<int>' to 'const value_type& {aka const int&}'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/List:63:0,
                 from 0_0_25830556_18734.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:1116:7: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::const_iterator, std::list<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<int>; std::list<_Tp, _Alloc>::const_iterator = std::_List_const_iterator<int>; std::list<_Tp, _Alloc>::value_type = int]
       insert(const_iterator __position, value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:1116:7: note:   no known conversion for argument 2 from 'std::list<int>' to 'std::list<int>::value_type&& {aka int&&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:1135:7: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::const_iterator, std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<int>; std::list<_Tp, _Alloc>::const_iterator = std::_List_const_iterator<int>]
       insert(const_iterator __p, initializer_list<value_type> __l)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:1135:7: note:   no known conversion for argument 2 from 'std::list<int>' to 'std::initializer_list<int>'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/List:64:0,
                 from 0_0_25830556_18734.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/list.tcc:113:5: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::const_iterator, std::list<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<int>; std::list<_Tp, _Alloc>::const_iterator = std::_List_const_iterator<int>; std::list<_Tp, _Alloc>::size_type = long long unsigned int; std::list<_Tp, _Alloc>::value_type = int]
     list<_Tp, _Alloc>::
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/list.tcc:113:5: note:   candidate expects 3 arguments, 2 provided
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/List:63:0,
                 from 0_0_25830556_18734.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:1196:2: note: template<class _InputIterator, class> std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::insert(std::list<_Tp, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = int; _Alloc = std::allocator<int>]
  insert(const_iterator __position, _InputIterator __first,
  ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:1196:2: note:   template argument deduction/substitution failed:
0_0_25830556_18734.cpp:59:32: note:   candidate expects 3 arguments, 2 provided
     p[u].insert(p[u].end(),p[v]);
                                ^


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 06:41:52, Gzip enabled