0_0_30423295_5475.cpp: In function 'void bfs(int)': 0_0_30423295_5475.cpp:31:36: error: 'vis' was not declared in this scope for(int i=1;i<=n;++i) d[i]=inf,vis[i]=0; ^