Problem plants
User Pan
Submission Time 2025-01-10 20:09:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

plants.cpp: In function ‘void init(int, std::vector<int>)’:
plants.cpp:140:52: error: ‘x’ was not declared in this scope
140 | else lo[i][0] = order[*prev(it)], distl[i][0] = (x - lo[i][0] + n)%n;
| ^
plants.cpp:149:63: error: ‘x’ was not declared in this scope
149 | else hi[i][0] = order[*prev(it)], distr[i][0] = (hi[i][0] - x + n)%n;
| ^