QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#570082 | #5145. Shortest Path | Derekshakk | Compile Error | / | / | C++17 | 5.0kb | 2024-09-17 13:43:42 | 2024-09-17 13:43:45 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
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 = Line; _Args = {int, long long int&, long long int&, int}; _Tp = Line]’: /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 = Line; _Args = {int, long long int&, long long int&, int}; _Tp = Line; allocator_type = std::allocator<Line>]’ /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 = Line; _Alloc = std::allocator<Line>; reference = Line&]’ answer.code:138:53: 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 ‘Line::Line(int)’ answer.code:48:8: note: candidate: ‘Line::Line()’ 48 | struct Line | ^~~~ answer.code:48:8: note: candidate expects 0 arguments, 1 provided answer.code:48:8: note: candidate: ‘constexpr Line::Line(const Line&)’ answer.code:48:8: note: no known conversion for argument 1 from ‘int’ to ‘const Line&’ answer.code:48:8: note: candidate: ‘constexpr Line::Line(Line&&)’ answer.code:48:8: note: no known conversion for argument 1 from ‘int’ to ‘Line&&’