QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#570071 | #5145. Shortest Path | Derekshakk | Compile Error | / | / | C++17 | 5.4kb | 2024-09-17 13:40:20 | 2024-09-17 13:40:26 |
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 = LineSegment; _Args = {int, long long int&, long long int&, int}; _Tp = LineSegment]’: /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 = LineSegment; _Args = {int, long long int&, long long int&, int}; _Tp = LineSegment; allocator_type = std::allocator<LineSegment>]’ /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 = {int, long long int&, long long int&, int}; _Tp = LineSegment; _Alloc = std::allocator<LineSegment>; reference = LineSegment&]’ answer.code:134:57: required from here /usr/include/c++/13/bits/new_allocator.h:187:11: error: new initializer expression list treated as compound expression [-fpermissive] 187 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/new_allocator.h:187:11: error: no matching function for call to ‘LineSegment::LineSegment(int)’ answer.code:47:8: note: candidate: ‘LineSegment::LineSegment()’ 47 | struct LineSegment | ^~~~~~~~~~~ answer.code:47:8: note: candidate expects 0 arguments, 1 provided answer.code:47:8: note: candidate: ‘constexpr LineSegment::LineSegment(const LineSegment&)’ answer.code:47:8: note: no known conversion for argument 1 from ‘int’ to ‘const LineSegment&’ answer.code:47:8: note: candidate: ‘constexpr LineSegment::LineSegment(LineSegment&&)’ answer.code:47:8: note: no known conversion for argument 1 from ‘int’ to ‘LineSegment&&’