Intervals - Minimum Interval to Include Each Query
Examine the following snippet from a min-heap approach. Which line contains a subtle bug that can cause incorrect results on some inputs?
```python
while min_heap and min_heap[0][1] < q:
heapq.heappop(min_heap)
res[idx] = min_heap[0][0] if min_heap else -1
```
