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

In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/c++allocator.h:33:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:46,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 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_28786270_30813.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = tmp; _Args = {int&, bool, int&}; _Tp = std::_Rb_tree_node<tmp>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/alloc_traits.h:253:4:   required from 'static std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> std::allocator_traits<_Alloc>::_S_construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = tmp; _Args = {int&, bool, int&}; _Alloc = std::allocator<std::_Rb_tree_node<tmp> >; std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> = void]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/alloc_traits.h:399:57:   required from 'static decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = tmp; _Args = {int&, bool, int&}; _Alloc = std::allocator<std::_Rb_tree_node<tmp> >; decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) = <type error>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:423:42:   required from 'std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_create_node(_Args&& ...) [with _Args = {int&, bool, int&}; _Key = tmp; _Val = tmp; _KeyOfValue = std::_Identity<tmp>; _Compare = std::less<tmp>; _Alloc = std::allocator<tmp>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<tmp>*]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:1743:64:   required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_unique(_Args&& ...) [with _Args = {int&, bool, int&}; _Key = tmp; _Val = tmp; _KeyOfValue = std::_Identity<tmp>; _Compare = std::less<tmp>; _Alloc = std::allocator<tmp>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:453:64:   required from 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::emplace(_Args&& ...) [with _Args = {int&, bool, int&}; _Key = tmp; _Compare = std::less<tmp>; _Alloc = std::allocator<tmp>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<tmp>]'
0_0_28786270_30813.cpp:117:36:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h:120:4: error: new initializer expression list treated as compound expression [-fpermissive]
  { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
    ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h:120:4: error: no matching function for call to 'tmp::tmp(int&)'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h:120:4: note: candidates are:
0_0_28786270_30813.cpp:7:8: note: tmp::tmp()
 struct tmp{
        ^
0_0_28786270_30813.cpp:7:8: note:   candidate expects 0 arguments, 1 provided
0_0_28786270_30813.cpp:7:8: note: constexpr tmp::tmp(const tmp&)
0_0_28786270_30813.cpp:7:8: note:   no known conversion for argument 1 from 'int' to 'const tmp&'
0_0_28786270_30813.cpp:7:8: note: constexpr tmp::tmp(tmp&&)
0_0_28786270_30813.cpp:7:8: note:   no known conversion for argument 1 from 'int' to 'tmp&&'


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-26 20:57:38, Gzip enabled