Cannot pass all test cases on Codechef

Help me debug the code…It passes sample test case.

@ make the type of array as unsigned

This too didn’t work

@sufia.aleena12 try unsigned long long then, like this:
unsigned long long arr[131];
and make sure you changed datatype of array in the function as well

https://ide.codingblocks.com/s/285378 still not working

@sufia.aleena12 there is a mistake in the 4th nested loop
image

What is the mistake??

I just got the mistake let me try to submit on codechef

@sufia.aleena12 loop is for l but you used variable k in condition and increment part

That didn’t work too

@sufia.aleena12 try this https://ide.codingblocks.com/s/285418

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.