I cant understand why i am getting worng answer.is there any one to help me
I used simple bfs.
#include<cstdio>
#include<queue>
using namespace std;
int g[21][21],d[21],seen[21];
int main()
{
//freopen("output.txt","w",stdout);
queue<int> q;
int count=0,i,e,num,k,j,tc,s,u,v,source ...