检查一下调用.front()之类的函数是有没有判断.size()>0;
ex: ans=max(ans,i-q.front().t+1);(70 pts);
if(q.size()) ans=max(ans,i-q.front().t+1) (100 pts);