QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#193691 | #7512. Almost Prefix Concatenation | ucup-team131# | Compile Error | / | / | C++23 | 10.0kb | 2023-09-30 17:43:19 | 2023-09-30 17:43:19 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘HS get_h(std::vector<std::array<int, 2> >&, int, int)’: answer.code:240:28: error: cannot bind non-const lvalue reference of type ‘HS&’ {aka ‘std::array<int, 2>&’} to an rvalue of type ‘HS’ {aka ‘std::array<int, 2>’} 240 | return sub(s[r], sh(s[l], r - l)); | ~~^~~~~~~~~~~~~ answer.code:224:18: note: initializing argument 2 of ‘HS sub(HS, HS&)’ 224 | HS sub(HS a, HS &b) { | ~~~~^