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

Compile Error

lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:21:15: error: expected ‘;’ before ‘<’ token
21 | for(int i=0,i<N,i++){
| ^
| ;
lightningrod.cpp:21:15: error: expected primary-expression before ‘<’ token
lightningrod.cpp:21:21: error: expected ‘;’ before ‘)’ token
21 | for(int i=0,i<N,i++){
| ^
| ;
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().se