QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#193691#7512. Almost Prefix Concatenationucup-team131#Compile Error//C++2310.0kb2023-09-30 17:43:192023-09-30 17:43:19

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) {
      |              ~~~~^