| Problem | landmarks |
|---|---|
| User | Tyx2019 |
| Submission Time | 2026-08-03 12:26:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
landmarks.cpp:7:13: error: array bound is not an integer constant before ‘]’ token
7 | int preA[N+5][2];
| ^
landmarks.cpp:8:13: error: array bound is not an integer constant before ‘]’ token
8 | int preB[N+5][2];
| ^
landmarks.cpp: In function ‘void init(std::vector<int>, std::vector<int>)’:
landmarks.cpp:16:5: error: ‘preA’ was not declared in this scope
16 | preA[0][0] = preA[0][1] = 0;
| ^~~~
landmarks.cpp:17:5: error: ‘preB’ was not declared in this scope
17 | preB[0][0] = preB[0][1] = 0;
| ^~~~
landmarks.cpp: In function ‘bool query(int, int, int, int)’:
landmarks.cpp:34:12: error: expected ‘,’ before ‘[’ token
34 | hvA[i] = (preA[X2][i] > preA[X1-1][i]);
| ^
| ,
landmarks.cpp:34:12: error: expected identifier before ‘[’ token
landmarks.cpp:34:47: error: expected ‘]’ before ‘;’ token