QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#462441#6885. Simple Tree ProblemGuanYunchangCompile Error//C++203.8kb2024-07-03 19:21:292024-07-03 19:21:29

詳細信息

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