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 gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/char_traits.h:57,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:42,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
                 from 0_0_39736423_5372.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h: In instantiation of 'constexpr void std::_Construct(_Tp*, _Args&& ...) [with _Tp = Pair; _Args = {}]':
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_uninitialized.h:643:18:   required from 'static constexpr _ForwardIterator std::__uninitialized_default_n_1<_TrivialValueType>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Pair*; _Size = long long unsigned int; bool _TrivialValueType = false]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_uninitialized.h:706:20:   required from 'constexpr _ForwardIterator std::__uninitialized_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Pair*; _Size = long long unsigned int]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_uninitialized.h:773:44:   required from 'constexpr _ForwardIterator std::__uninitialized_default_n_a(_ForwardIterator, _Size, allocator<_Tp>&) [with _ForwardIterator = Pair*; _Size = long long unsigned int; _Tp = Pair]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:1713:36:   required from 'constexpr void std::vector<_Tp, _Alloc>::_M_default_initialize(size_type) [with _Tp = Pair; _Alloc = std::allocator<Pair>; size_type = long long unsigned int]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:553:9:   required from 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = Pair; _Alloc = std::allocator<Pair>; size_type = long long unsigned int; allocator_type = std::allocator<Pair>]'
0_0_39736423_5372.cpp:26:22:   required from here
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h:115:28: error: no matching function for call to 'construct_at(Pair*&)'
  115 |           std::construct_at(__p, std::forward<_Args>(__args)...);
      |           ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h:94:5: note: candidate: 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...)'
   94 |     construct_at(_Tp* __location, _Args&&... __args)
      |     ^~~~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h:94:5: note:   template argument deduction/substitution failed:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h: In substitution of 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = Pair; _Args = {}]':
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h:115:21:   required from 'constexpr void std::_Construct(_Tp*, _Args&& ...) [with _Tp = Pair; _Args = {}]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_uninitialized.h:643:18:   required from 'static constexpr _ForwardIterator std::__uninitialized_default_n_1<_TrivialValueType>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Pair*; _Size = long long unsigned int; bool _TrivialValueType = false]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_uninitialized.h:706:20:   required from 'constexpr _ForwardIterator std::__uninitialized_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Pair*; _Size = long long unsigned int]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_uninitialized.h:773:44:   required from 'constexpr _ForwardIterator std::__uninitialized_default_n_a(_ForwardIterator, _Size, allocator<_Tp>&) [with _ForwardIterator = Pair*; _Size = long long unsigned int; _Tp = Pair]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:1713:36:   required from 'constexpr void std::vector<_Tp, _Alloc>::_M_default_initialize(size_type) [with _Tp = Pair; _Alloc = std::allocator<Pair>; size_type = long long unsigned int]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:553:9:   required from 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = Pair; _Alloc = std::allocator<Pair>; size_type = long long unsigned int; allocator_type = std::allocator<Pair>]'
0_0_39736423_5372.cpp:26:22:   required from here
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h:96:17: error: no matching function for call to 'Pair::Pair()'
   96 |     -> decltype(::new((void*)0) _Tp(std::declval<_Args>()...))
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0_0_39736423_5372.cpp:16:5: note: candidate: 'Pair::Pair(int, int)'
   16 |     Pair(int a, int b) : a(a), b(b) {}
      |     ^~~~
0_0_39736423_5372.cpp:16:5: note:   candidate expects 2 arguments, 0 provided
0_0_39736423_5372.cpp:14:8: note: candidate: 'constexpr Pair::Pair(const Pair&)'
   14 | struct Pair {
      |        ^~~~
0_0_39736423_5372.cpp:14:8: note:   candidate expects 1 argument, 0 provided
0_0_39736423_5372.cpp:14:8: note: candidate: 'constexpr Pair::Pair(Pair&&)'
0_0_39736423_5372.cpp:14:8: note:   candidate expects 1 argument, 0 provided
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h: In instantiation of 'constexpr void std::_Construct(_Tp*, _Args&& ...) [with _Tp = Pair; _Args = {}]':
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_uninitialized.h:643:18:   required from 'static constexpr _ForwardIterator std::__uninitialized_default_n_1<_TrivialValueType>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Pair*; _Size = long long unsigned int; bool _TrivialValueType = false]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_uninitialized.h:706:20:   required from 'constexpr _ForwardIterator std::__uninitialized_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Pair*; _Size = long long unsigned int]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_uninitialized.h:773:44:   required from 'constexpr _ForwardIterator std::__uninitialized_default_n_a(_ForwardIterator, _Size, allocator<_Tp>&) [with _ForwardIterator = Pair*; _Size = long long unsigned int; _Tp = Pair]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:1713:36:   required from 'constexpr void std::vector<_Tp, _Alloc>::_M_default_initialize(size_type) [with _Tp = Pair; _Alloc = std::allocator<Pair>; size_type = long long unsigned int]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:553:9:   required from 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = Pair; _Alloc = std::allocator<Pair>; size_type = long long unsigned int; allocator_type = std::allocator<Pair>]'
0_0_39736423_5372.cpp:26:22:   required from here
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h:119:7: error: no matching function for call to 'Pair::Pair()'
  119 |       ::new((void*)__p) _Tp(std::forward<_Args>(__args)...);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0_0_39736423_5372.cpp:16:5: note: candidate: 'Pair::Pair(int, int)'
   16 |     Pair(int a, int b) : a(a), b(b) {}
      |     ^~~~
0_0_39736423_5372.cpp:16:5: note:   candidate expects 2 arguments, 0 provided
0_0_39736423_5372.cpp:14:8: note: candidate: 'constexpr Pair::Pair(const Pair&)'
   14 | struct Pair {
      |        ^~~~
0_0_39736423_5372.cpp:14:8: note:   candidate expects 1 argument, 0 provided
0_0_39736423_5372.cpp:14:8: note: candidate: 'constexpr Pair::Pair(Pair&&)'
0_0_39736423_5372.cpp:14:8: note:   candidate expects 1 argument, 0 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-12-02 17:45:54, Gzip enabled