在使用 vector 时,一定要注意 vector::size() 返回的是 unsigned int ,若直接减出负数会变成很大的正数,一定要记得做强制类型转换!
vector
vector::size()
unsigned int