QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#462441#6885. Simple Tree ProblemGuanYunchangCompile Error//C++203.8kb2024-07-03 19:21:292024-07-03 19:21:29

Details

answer.code: In function ‘int get(int, int, int)’:
answer.code:81:28: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   81 |                 if (l & 1) ans = max(ans, T[type][l++]);
      |                            ^~~
      |                            abs
answer.code:82:31: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   82 |                 if (!(r & 1)) ans = max(ans, T[type][r--]);
      |                               ^~~
      |                               abs
answer.code:86:16: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   86 |         return ans;
      |                ^~~
      |                abs