Try to post code in a formatted way so we can see what's going on.

One error that jumps out is this:
for(j=i+1;j<15;j++);
{
//do something
}

The semi-colon will end the for loop right there...