Problem landmarks
User gelastropod
Submission Time 2026-08-03 12:44:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

landmarks.cpp:5:1: error: expected ‘,’ or ‘;’ before ‘vector’
5 | vector<int> d1, d2, A, B;
| ^~~~~~
landmarks.cpp: In function ‘void init(std::vector<int>, std::vector<int>)’:
landmarks.cpp:8:66: error: ‘d1’ was not declared in this scope; did you mean ‘y1’?
8 | for (int i = 0; i + 1 < a.size(); i++) if (a[i] != a[i + 1]) d1.push_back(i);
| ^~
| y1
landmarks.cpp:9:63: error: ‘d2’ was not declared in this scope
9 | for (int i = 0; i + 1 < b.size(); i++) if (b[i] != b[i + 1]) d2.push_back(i);
| ^~
landmarks.cpp:13:18: error: ‘A’ was not declared in this scope
13 | for (int i : a) A.push_back(i - 1);
| ^
landmarks.cpp:14:18: error: ‘B’ was not declared in this scope