QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#417800#8505. Almost AlignedcheissmartCompile Error//C++173.1kb2024-05-22 22:18:452024-05-22 22:18:46

Details

In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h:33,
                 from /usr/include/c++/13/bits/allocator.h:46,
                 from /usr/include/c++/13/string:43,
                 from /usr/include/c++/13/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52,
                 from answer.code:1:
/usr/include/c++/13/bits/new_allocator.h: In instantiation of ‘void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = Event; _Args = {double, const line&, term&}; _Tp = Event]’:
/usr/include/c++/13/bits/alloc_traits.h:537:17:   required from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = Event; _Args = {double, const line&, term&}; _Tp = Event; allocator_type = std::allocator<Event>]’
/usr/include/c++/13/bits/vector.tcc:117:30:   required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {double, const line&, term&}; _Tp = Event; _Alloc = std::allocator<Event>; reference = Event&]’
answer.code:105:13:   required from here
/usr/include/c++/13/bits/new_allocator.h:187:11: error: no matching function for call to ‘Event::Event(double, const line&, term&)’
  187 |         { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:52:8: note: candidate: ‘Event::Event()’
   52 | struct Event {
      |        ^~~~~
answer.code:52:8: note:   candidate expects 0 arguments, 3 provided
answer.code:52:8: note: candidate: ‘constexpr Event::Event(const Event&)’
answer.code:52:8: note:   candidate expects 1 argument, 3 provided
answer.code:52:8: note: candidate: ‘constexpr Event::Event(Event&&)’
answer.code:52:8: note:   candidate expects 1 argument, 3 provided