QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#417800 | #8505. Almost Aligned | cheissmart | Compile Error | / | / | C++17 | 3.1kb | 2024-05-22 22:18:45 | 2024-05-22 22:18:46 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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