QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#557605#8668. 回文路径HuluoboCompile Error//C++143.5kb2024-09-11 10:29:112024-09-11 10:29:12

Details

answer.code: In function ‘void init()’:
answer.code:36:24: error: ‘n’ was not declared in this scope
   36 |         for(int i=1;i<=n;i++) h1[i]=h1[i-1]*base+(s[i-1]-'a');
      |                        ^
answer.code:36:51: error: ‘s’ was not declared in this scope
   36 |         for(int i=1;i<=n;i++) h1[i]=h1[i-1]*base+(s[i-1]-'a');
      |                                                   ^
answer.code:37:19: error: ‘n’ was not declared in this scope
   37 |         for(int i=n;i>=1;i--) h2[i]=h2[i+1]*base+(s[i-1]-'a');
      |                   ^
answer.code:37:51: error: ‘s’ was not declared in this scope
   37 |         for(int i=n;i>=1;i--) h2[i]=h2[i+1]*base+(s[i-1]-'a');
      |                                                   ^
answer.code:38:24: error: ‘n’ was not declared in this scope
   38 |         for(int i=1;i<=n;i++) h3[i]=h3[i-1]*base+(s2[i-1]-'a');
      |                        ^
answer.code:38:51: error: ‘s2’ was not declared in this scope; did you mean ‘h2’?
   38 |         for(int i=1;i<=n;i++) h3[i]=h3[i-1]*base+(s2[i-1]-'a');
      |                                                   ^~
      |                                                   h2
answer.code:39:19: error: ‘n’ was not declared in this scope
   39 |         for(int i=n;i>=1;i--) h4[i]=h4[i+1]*base+(s2[i-1]-'a');
      |                   ^
answer.code:39:51: error: ‘s2’ was not declared in this scope; did you mean ‘h2’?
   39 |         for(int i=n;i>=1;i--) h4[i]=h4[i+1]*base+(s2[i-1]-'a');
      |                                                   ^~
      |                                                   h2