| Problem | monsters2 |
|---|---|
| User | WILLI1071A |
| Submission Time | 2025-11-18 17:32:36 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
monsters2.cpp: In function ‘int main()’:
monsters2.cpp:21:19: error: ‘lowerbound’ was not declared in this scope; did you mean ‘lround’?
21 | closestidx = lowerbound(detonation.begin(),detonation.end(),p.first);
| ^~~~~~~~~~
| lround
monsters2.cpp:23:36: error: ‘closestindex’ was not declared in this scope; did you mean ‘closestidx’?
23 | if(abs(p.first-detonation[closestindex]) == abs(p.first-detonation[closestindex-1])){//same pos
| ^~~~~~~~~~~~
| closestidx
monsters2.cpp:24:17: error: ‘bothsame’ was not declared in this scope
24 | bothsame=1;
| ^~~~~~~~
monsters2.cpp:35:51: error: ‘closestindex’ was not declared in this scope; did you mean ‘closestidx’?
35 | closestdistance = abs(p.first-detonation[closestindex]);//on mine
|