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++/vector:62:0,
                 from 0_0_38259367_10233.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_construct.h: In instantiation of 'void std::_Construct(_T1*, _Args&& ...) [with _T1 = Point; _Args = {}]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_uninitialized.h:515:43:   required from 'static void std::__uninitialized_default_n_1<_TrivialValueType>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Point*; _Size = long long unsigned int; bool _TrivialValueType = false]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_uninitialized.h:570:33:   required from 'void std::__uninitialized_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Point*; _Size = long long unsigned int]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_uninitialized.h:631:50:   required from 'void std::__uninitialized_default_n_a(_ForwardIterator, _Size, std::allocator<_Tp>&) [with _ForwardIterator = Point*; _Size = long long unsigned int; _Tp = Point]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:1311:28:   required from 'void std::vector<_Tp, _Alloc>::_M_default_initialize(std::vector<_Tp, _Alloc>::size_type) [with _Tp = Point; _Alloc = std::allocator<Point>; std::vector<_Tp, _Alloc>::size_type = long long unsigned int]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:279:34:   required from 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&) [with _Tp = Point; _Alloc = std::allocator<Point>; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<Point>]'
0_0_38259367_10233.cpp:57:36:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_construct.h:75:7: error: call of overloaded 'Point()' is ambiguous
     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_construct.h:75:7: note: candidates are:
0_0_38259367_10233.cpp:16:5: note: Point::Point(long double, long double)
     Point(double x = 0.0, double y = 0.0) : x(x), y(y) {}
     ^
0_0_38259367_10233.cpp:15:5: note: Point::Point()
     Point() {}
     ^


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-10-23 11:15:40, Gzip enabled