memset(dis,0x3f3f3f3f,sizeof(dis)); … if(dis[n]==0x3f3f3f3f)cout<<-1;
我用了一个memset,然后天真地以为赋到数组里的就是0x3f3f3f3f。调了 303030 mins。
0x3f3f3f3f
我是个傻逼。