Problem lightningrod
User Bulbasheen
Submission Time 2024-03-07 11:30:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:23:17: error: ‘rods’ was not declared in this scope
23 | while (!rods.empty() and rods.top().first - rods.top().second >= X[i] - Y[i]){
| ^~~~
lightningrod.cpp:26:9: error: ‘rods’ was not declared in this scope
26 | rods.push({X[i], Y[i]});
| ^~~~
lightningrod.cpp:29:10: error: ‘rods’ was not declared in this scope
29 | cout << rods.size();
| ^~~~