@[postpone](/user/1281794)
```cpp
while (i != mp.end() and !(*i).second)
--> mp.erase((*i).first), i++;
```
这里改成`mp.erase((*i++).first);`就可以了。
by zsw1414y @ 2024-04-25 19:50:10
@[zsw1414y](/user/950732) 谢谢!(不过为什么原语句会造成RE呢
by postpone @ 2024-04-26 02:24:46