QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#212476 | #6733. Moniphant Sleep | ZhangYiDe | Compile Error | / | / | C++20 | 8.8kb | 2023-10-13 16:19:32 | 2023-10-13 16:19:32 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In instantiation of ‘const T* SmallVector<T, MAXN>::begin() const [with T = std::pair<int, Node>; long unsigned int MAXN = 3; SmallVector<T, MAXN>::const_iterator = const std::pair<int, Node>*]’: answer.code:287:23: required from here answer.code:200:42: error: invalid ‘static_cast’ from type ‘const char [60]’ to type ‘void*’ 200 | #define PTR_CAST(Ptr,p) static_cast<Ptr>(static_cast<void*>(p)) | ^~~~~~~~~~~~~~~~~~~~~ answer.code:224:18: note: in expansion of macro ‘PTR_CAST’ 224 | { return PTR_CAST(const_iterator,mem); } | ^~~~~~~~ answer.code: In instantiation of ‘const T* SmallVector<T, MAXN>::end() const [with T = std::pair<int, Node>; long unsigned int MAXN = 3; SmallVector<T, MAXN>::const_iterator = const std::pair<int, Node>*]’: answer.code:287:46: required from here answer.code:200:42: error: invalid ‘static_cast’ from type ‘const char*’ to type ‘void*’ 200 | #define PTR_CAST(Ptr,p) static_cast<Ptr>(static_cast<void*>(p)) | ^~~~~~~~~~~~~~~~~~~~~ answer.code:226:18: note: in expansion of macro ‘PTR_CAST’ 226 | { return PTR_CAST(const_iterator,mem+n*sizeof(T)); } | ^~~~~~~~