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

Compile Error

lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:21:7: error: ‘mx_g’ was not declared in this scope
21 | if (mx_g >= X[i] + Y[i] and i != 0) continue;
| ^~~~
lightningrod.cpp:22:17: error: ‘rods’ was not declared in this scope
22 | while (!rods.empty() and rods.top().first - rods.top().second >= X[i] - Y[i]){
| ^~~~
lightningrod.cpp:25:9: error: ‘rods’ was not declared in this scope
25 | rods.push({X[i], Y[i]});
| ^~~~
lightningrod.cpp:26:9: error: ‘mx_g’ was not declared in this scope
26 | mx_g = max(mx_g, X[i] + Y[i]);
| ^~~~
lightningrod.cpp:28:10: error: ‘rods’ was not declared in this scope
28 | cout << rods.size();
| ^~~~