用 lower_bound() 时记得判断是否找到元素。
lower_bound()
我因为少加了 lower_bound()!=e[u].end() 调了半小时。
lower_bound()!=e[u].end()