QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#231772#7616. Jump GraphLatesCompile Error//C++141.5kb2023-10-29 16:23:562023-10-29 16:23:57

Details

answer.code: In function ‘int main()’:
answer.code:35:15: error: ‘top’ was not declared in this scope
   35 |         while(top && p[st[top]] < p[i]) -- top;
      |               ^~~
answer.code:35:24: error: ‘st’ was not declared in this scope; did you mean ‘std’?
   35 |         while(top && p[st[top]] < p[i]) -- top;
      |                        ^~
      |                        std
answer.code:36:14: error: ‘top’ was not declared in this scope
   36 |         L[i]=top?st[top]:0;
      |              ^~~
answer.code:36:18: error: ‘st’ was not declared in this scope; did you mean ‘std’?
   36 |         L[i]=top?st[top]:0;
      |                  ^~
      |                  std
answer.code:38:7: error: ‘top’ was not declared in this scope
   38 |     } top=0;
      |       ^~~
answer.code:40:24: error: ‘st’ was not declared in this scope; did you mean ‘std’?
   40 |         while(top && p[st[top]] < p[i]) -- top;
      |                        ^~
      |                        std
answer.code:41:18: error: ‘st’ was not declared in this scope; did you mean ‘std’?
   41 |         R[i]=top?st[top]:n+1;
      |                  ^~
      |                  std
answer.code:50:9: error: ‘s’ was not declared in this scope
   50 |         s[L[i]]+=tag[i];
      |         ^
answer.code:53:27: error: ‘s’ was not declared in this scope
   53 |     for(int i=1;i<=n;++i) s[i]+=s[i-1];
      |                           ^
answer.code:55:23: error: ‘s’ was not declared in this scope
   55 |         printf("%d ", s[i]);
      |                       ^