QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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.
Details
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) { | ~~~~^