program isnt working

hey everybody
my program is complining but not acting as i want it to work.
i'm testing cross talks beween cables.
can some one guide me?

CODE:

#define wires 5
void setup()
{
Serial.begin(9600);
Serial.println("Cable Tester - (c) 2013 ");
}

void loop()
{
int value,i,j,m=0,l=0;
short cross[wires][wires]={0};
Serial.println("cross-talk");
//HIGH TEST
for(i=2;i<2+wires;i++) //initialization
{
pinMode(i,OUTPUT);
digitalWrite(i,LOW);
}
for(i=2;i<2+wires;i++)
{
pinMode(i,OUTPUT);
digitalWrite(i,HIGH);
for(j=2;j<2+wires;j++)
{

if(i!=j)
{
pinMode(j,INPUT);
if(digitalRead(j)==HIGH)
{
cross[m][l]=1; //suspected
}
else
{
cross[m][l]=0;
}
}
l++;
}
l=0;
m++;
digitalWrite(i,LOW);
}
delay(2000);
}

And ...........

Mark

How to use this forum

Read this before posting a programming question