他的代码块好像炸了(小声逼逼
补充一点,在代码的最后……
if(low[u]==dfn[u]) { while(g.top()!=u) { int w=g.top(); g.pop(); s[w]=0; } //千万别忘了弹出该点 g.pop(); //千万别忘了!!!! s[u]=0; }