QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#668158#7780. Dark LaTeX vs. Light LaTeXucup-team2513Compile Error//C++175.2kb2024-10-23 12:01:082024-10-23 12:01:08

Details

answer.code: In function ‘int main()’:
answer.code:169:83: error: ‘l’ was not declared in this scope
  169 |                 for (ri i = j; i >= 1; i--) sumr[j][i] = sumr[j][i + 1] + ot2[hn1[l][r]];
      |                                                                                   ^
answer.code:169:86: error: ‘r’ was not declared in this scope
  169 |                 for (ri i = j; i >= 1; i--) sumr[j][i] = sumr[j][i + 1] + ot2[hn1[l][r]];
      |                                                                                      ^
answer.code:172:86: error: ‘l’ was not declared in this scope
  172 |                 for (ri j = i; j <= len2; j++) suml[i][j] = suml[i][j - 1] + ot1[hn2[l][r]];
      |                                                                                      ^
answer.code:172:89: error: ‘r’ was not declared in this scope
  172 |                 for (ri j = i; j <= len2; j++) suml[i][j] = suml[i][j - 1] + ot1[hn2[l][r]];
      |                                                                                         ^
answer.code:134:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  134 |         scanf("%s%s", s1 + 1, s2 + 1);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~