//In the name of Allah #include #include using namespace std; const int MAX=100; vectoradj[MAX]; int que[MAX],depth[MAX]; bool mark[MAX]; int bfs(int v,int u){ int h=0,t=1; que[0]=v; mark[v]=true; for(;h>n>>m; for(int i=0;i>a>>b; adj[a].push_back(b); adj[b].push_back(a); } cout<>x; }