Problem lightningrod
User yc
Submission Time 2025-06-02 06:50:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:26:10: error: ‘it’ was not declared in this scope; did you mean ‘i’?
26 | if ((*it).first!=-1 and abs(a-(i+1)) <= b - (*it).second) {y = y+1;(*it).first=-1;it++;}
| ^~
| i