In file included from /usr/include/c++/13/bits/stl_iterator.h:85,
from /usr/include/c++/13/bits/stl_algobase.h:67,
from /usr/include/c++/13/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from answer.code:1:
/usr/include/c++/13/bits/stl_construct.h: In instantiation of ‘constexpr void std::_Construct(_Tp*, _Args&& ...) [with _Tp = P; _Args = {}]’:
/usr/include/c++/13/bits/stl_uninitialized.h:643:18: required from ‘static constexpr _ForwardIterator std::__uninitialized_default_n_1<_TrivialValueType>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = P*; _Size = long unsigned int; bool _TrivialValueType = false]’
/usr/include/c++/13/bits/stl_uninitialized.h:706:20: required from ‘constexpr _ForwardIterator std::__uninitialized_default_n(_ForwardIterator, _Size) [with _ForwardIterator = P*; _Size = long unsigned int]’
/usr/include/c++/13/bits/stl_uninitialized.h:773:44: required from ‘constexpr _ForwardIterator std::__uninitialized_default_n_a(_ForwardIterator, _Size, allocator<_Tp>&) [with _ForwardIterator = P*; _Size = long unsigned int; _Tp = P]’
/usr/include/c++/13/bits/stl_vector.h:1715:36: required from ‘constexpr void std::vector<_Tp, _Alloc>::_M_default_initialize(size_type) [with _Tp = P; _Alloc = std::allocator<P>; size_type = long unsigned int]’
/usr/include/c++/13/bits/stl_vector.h:555:9: required from ‘constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = P; _Alloc = std::allocator<P>; size_type = long unsigned int; allocator_type = std::allocator<P>]’
answer.code:52:19: required from here
/usr/include/c++/13/bits/stl_construct.h:115:28: error: no matching function for call to ‘construct_at(P*&)’
115 | std::construct_at(__p, std::forward<_Args>(__args)...);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/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)
| ^~~~~~~~~~~~
/usr/include/c++/13/bits/stl_construct.h:94:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/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 = P; _Args = {}]’:
/usr/include/c++/13/bits/stl_construct.h:115:21: required from ‘constexpr void std::_Construct(_Tp*, _Args&& ...) [with _Tp = P; _Args = {}]’
/usr/include/c++/13/bits/stl_uninitialized.h:643:18: required from ‘static constexpr _ForwardIterator std::__uninitialized_default_n_1<_TrivialValueType>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = P*; _Size = long unsigned int; bool _TrivialValueType = false]’
/usr/include/c++/13/bits/stl_uninitialized.h:706:20: required from ‘constexpr _ForwardIterator std::__uninitialized_default_n(_ForwardIterator, _Size) [with _ForwardIterator = P*; _Size = long unsigned int]’
/usr/include/c++/13/bits/stl_uninitialized.h:773:44: required from ‘constexpr _ForwardIterator std::__uninitialized_default_n_a(_ForwardIterator, _Size, allocator<_Tp>&) [with _ForwardIterator = P*; _Size = long unsigned int; _Tp = P]’
/usr/include/c++/13/bits/stl_vector.h:1715:36: required from ‘constexpr void std::vector<_Tp, _Alloc>::_M_default_initialize(size_type) [with _Tp = P; _Alloc = std::allocator<P>; size_type = long unsigned int]’
/usr/include/c++/13/bits/stl_vector.h:555:9: required from ‘constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = P; _Alloc = std::allocator<P>; size_type = long unsigned int; allocator_type = std::allocator<P>]’
answer.code:52:19: required from here
/usr/include/c++/13/bits/stl_construct.h:96:17: error: no matching function for call to ‘P::P()’
96 | -> decltype(::new((void*)0) _Tp(std::declval<_Args>()...))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:42:5: note: candidate: ‘P::P(ll, ll)’
42 | P(int x, int y) : x(x), y(y) {}
| ^
answer.code:42:5: note: candidate expects 2 arguments, 0 provided
answer.code:39:8: note: candidate: ‘constexpr P::P(const P&)’
39 | struct P
| ^
answer.code:39:8: note: candidate expects 1 argument, 0 provided
answer.code:39:8: note: candidate: ‘constexpr P::P(P&&)’
answer.code:39:8: note: candidate expects 1 argument, 0 provided
/usr/include/c++/13/bits/stl_construct.h: In instantiation of ‘constexpr void std::_Construct(_Tp*, _Args&& ...) [with _Tp = P; _Args = {}]’:
/usr/include/c++/13/bits/stl_uninitialized.h:643:18: required from ‘static constexpr _ForwardIterator std::__uninitialized_default_n_1<_TrivialValueType>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = P*; _Size = long unsigned in...