Search found 1 match

by Suddho
Thu Dec 18, 2014 12:35 pm
Forum: Volume 115 (11500-11599)
Topic: 11504 - Dominos
Replies: 55
Views: 21603

Re: 11504 - Dominos

Why below code is getting WA? Need help #include<stdio.h> #include<iostream> #define MAX 100000 #include <vector> #include<queue> using namespace std; vector<int>edges[MAX]; int visited[MAX]={0}; int level[MAX]={0}; int parent[MAX]; void BFS(int n, int src) { //int visited[100]={0}; queue<int>Q; Q.p...

Go to advanced search