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++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_38499205_30291.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 = Segment; _Args = {Segment}; _Tp = Segment]':
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 = Segment; _Args = {Segment}; _Alloc = std::allocator<Segment>; 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 = Segment; _Args = {Segment}; _Alloc = std::allocator<Segment>; 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 = {Segment}; _Tp = Segment; _Alloc = std::allocator<Segment>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:932:36:   required from 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Segment; _Alloc = std::allocator<Segment>; std::vector<_Tp, _Alloc>::value_type = Segment]'
0_0_38499205_30291.cpp:63:55:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h:120:4: error: use of deleted function 'Segment::Segment(Segment&&)'
  { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
    ^
0_0_38499205_30291.cpp:12:8: note: 'Segment::Segment(Segment&&)' is implicitly deleted because the default definition would be ill-formed:
 struct Segment {
        ^
0_0_38499205_30291.cpp:12:8: error: no matching function for call to 'Point::Point(Point)'
0_0_38499205_30291.cpp:12:8: note: candidates are:
0_0_38499205_30291.cpp:9:5: note: Point::Point(Point&)
     Point(Point& p):x(p.x), y(p.y) {}
     ^
0_0_38499205_30291.cpp:9:5: note:   no known conversion for argument 1 from 'Point' to 'Point&'
0_0_38499205_30291.cpp:8:5: note: Point::Point(double, double)
     Point(double x = 0, double y = 0) : x(x), y(y) {}
     ^
0_0_38499205_30291.cpp:12:8: error: no matching function for call to 'Point::Point(Point)'
 struct Segment {
        ^
0_0_38499205_30291.cpp:12:8: note: candidates are:
0_0_38499205_30291.cpp:9:5: note: Point::Point(Point&)
     Point(Point& p):x(p.x), y(p.y) {}
     ^
0_0_38499205_30291.cpp:9:5: note:   no known conversion for argument 1 from 'Point' to 'Point&'
0_0_38499205_30291.cpp:8:5: note: Point::Point(double, double)
     Point(double x = 0, double y = 0) : x(x), y(y) {}
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tempbuf.h:60:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_38499205_30291.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_construct.h: In instantiation of 'void std::_Construct(_T1*, _Args&& ...) [with _T1 = Segment; _Args = {Segment}]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_uninitialized.h:75:53:   required from 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<Segment*>; _ForwardIterator = Segment*; bool _TrivialValueTypes = false]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_uninitialized.h:125:41:   required from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<Segment*>; _ForwardIterator = Segment*]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_uninitialized.h:278:63:   required from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator<Segment*>; _ForwardIterator = Segment*; _Tp = Segment]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_uninitialized.h:301:69:   required from '_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = Segment*; _ForwardIterator = Segment*; _Allocator = std::allocator<Segment>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:423:43:   required from 'void std::vector<_Tp, _Alloc>::_M_emplace_back_aux(_Args&& ...) [with _Args = {Segment}; _Tp = Segment; _Alloc = std::allocator<Segment>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:101:54:   required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {Segment}; _Tp = Segment; _Alloc = std::allocator<Segment>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:932:36:   required from 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Segment; _Alloc = std::allocator<Segment>; std::vector<_Tp, _Alloc>::value_type = Segment]'
0_0_38499205_30291.cpp:63:55:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_construct.h:75:7: error: use of deleted function 'Segment::Segment(Segment&&)'
     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
       ^


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-25 05:02:09, Gzip enabled