HELP...GETTING WRONG ANSWER

Please help me. showing wrong answer but when i am compiling the code every thing is going right and all output is correct. Please tell me the fault.>.

PLZ HELP …

QUESTION :-

CODE LINK:-
http://www.codechef.com/viewsolution/5849542

Both the integers in output must be separated by space (’ ‘) and not tab(’\t’).
Also in searching max lead, you are always comparing with first indexed lead. Once you find a new lead, update the index of ‘j’ to that position so that, for future comparisons, lead will be compared to max lead till previous position.

for(int j=0;j<1;j++)
{
for(int k=j+1;k<=rr-1;k++)
{
    if(lead[j]>lead[k])
    {
      max=lead[j];
      l=leader[j];
    }
    else
    {
      max=lead[k];
      l=leader[k];
      j = k;    <--
    }    
}
}

THNK YOU SO MUCH…

But still getting wrong answer!!