my i/p canbe of format.here the number of rows and cols is 2 and 5.
i have to consider whenevr the dots come into play.
as i encou nter each dot i increment a counter meaning that is 1st dot,2nd dot and so on...
in the first row i have two dots... so i name them as 1 and 2...
whenever 2 dots are adjacent or one below the other i need to associate those dots...
here in the i/p above i have to associate
and 2 5
this seems to be simple...but am getting runtime error for the following processing... can anyone help me plzz....
#define max 100
using namespace std;
long long int t,i,j,count=0,a[max][max],m,n;