Problem lightningrod
User eliasxyz
Submission Time 2025-06-05 22:02:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp: In function β€˜int main()’:
lightningrod.cpp:25:11: error: expected unqualified-id before β€˜.’ token
25 | if(stack.empty()){rods.push(p);}
| ^
lightningrod.cpp:27:54: error: expression cannot be used as a function
27 | while(rods.top().first-rods.top().second>=p.first()-p.second() and rods.top().first+rods.top().second<p.first+p.second){
| ^
lightningrod.cpp:27:65: error: expression cannot be used as a function
27 | while(rods.top().first-rods.top().second>=p.first()-p.second() and rods.top().first+rods.top().second<p.first+p.second){
| ^