QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#608588 | #365. Railway Trip | 3un_larryfunc | Compile Error | / | / | C++14 | 1.8kb | 2024-10-03 23:27:53 | 2024-10-03 23:27:53 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
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