QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#608588#365. Railway Trip3un_larryfuncCompile Error//C++141.8kb2024-10-03 23:27:532024-10-03 23:27:53

详细

answer.code: In function ‘int main()’:
answer.code:11:12: error: missing template arguments before ‘l’
   11 |     vector l(lg, vector<int>(n)), r(lg, vector<int>(n, n - 1));
      |            ^
answer.code:17:13: error: ‘r’ was not declared in this scope
   17 |             r[0][stk.back()] = i;
      |             ^
answer.code:21:13: error: ‘l’ was not declared in this scope
   21 |             l[0][i] = stk.back();
      |             ^
answer.code:23:17: error: ‘r’ was not declared in this scope
   23 |                 r[0][stk.back()] = i;
      |                 ^
answer.code:31:22: error: ‘l’ was not declared in this scope; did you mean ‘lx’?
   31 |             int lx = l[i - 1][x], rx = r[i - 1][x];
      |                      ^
      |                      lx
answer.code:32:50: error: ‘rx’ was not declared in this scope; did you mean ‘lx’?
   32 |             l[i][x] = min(l[i - 1][lx], l[i - 1][rx]);
      |                                                  ^~
      |                                                  lx
answer.code:33:13: error: ‘r’ was not declared in this scope
   33 |             r[i][x] = max(r[i - 1][lx], r[i - 1][rx]);
      |             ^
answer.code:46:26: error: ‘l’ was not declared in this scope; did you mean ‘la’?
   46 |             int la = min(l[i][lx], l[i][rx]), ra = max(r[i][lx], r[i][rx]);
      |                          ^
      |                          la
answer.code:47:17: error: ‘ra’ was not declared in this scope; did you mean ‘la’?
   47 |             if (ra < b) {
      |                 ^~
      |                 la
answer.code:55:26: error: ‘l’ was not declared in this scope; did you mean ‘lb’?
   55 |             int lb = min(l[i][lx], l[i][rx]), rb = max(r[i][lx], r[i][rx]);
      |                          ^
      |                          lb
answer.code:58:31: error: ‘rb’ was not declared in this scope; did you mean ‘lb’?
   58 |                 lx = lb, rx = rb;
      |                               ^~
      |                               lb