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++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_30685659_19952.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator< <template-parameter-1-1> >::construct(_Up*, _Args&& ...) [with _Up = Obj; _Args = {double&, double&}; _Tp = Obj]':
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 = Obj; _Args = {double&, double&}; _Alloc = std::allocator<Obj>; 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 = Obj; _Args = {double&, double&}; _Alloc = std::allocator<Obj>; decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) = <type error>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:97:40:   required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {double&, double&}; _Tp = Obj; _Alloc = std::allocator<Obj>]'
0_0_30685659_19952.cpp:250:29:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h:120:4: error: no matching function for call to 'Obj::Obj(double&, double&)'
  { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
    ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h:120:4: note: candidates are:
0_0_30685659_19952.cpp:38:3: note: Obj::Obj(int, Type, Type)
   Obj(int i, Type x, Type y) : id_(i), vec_(x, y) {}
   ^
0_0_30685659_19952.cpp:38:3: note:   candidate expects 3 arguments, 2 provided
0_0_30685659_19952.cpp:36:3: note: Obj::Obj()
   Obj() {}
   ^
0_0_30685659_19952.cpp:36:3: note:   candidate expects 0 arguments, 2 provided
0_0_30685659_19952.cpp:34:7: note: constexpr Obj::Obj(const Obj&)
 class Obj {
       ^
0_0_30685659_19952.cpp:34:7: note:   candidate expects 1 argument, 2 provided
0_0_30685659_19952.cpp:34:7: note: constexpr Obj::Obj(Obj&&)
0_0_30685659_19952.cpp:34:7: note:   candidate expects 1 argument, 2 provided


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-07-01 16:20:12, Gzip enabled