TEST CASE NEEDED FOR LOSTMAX

Just want to know TEST CASE at which my code fails.

LINK TO solution : https://www.codechef.com/viewsolution/14717399

Link to problem : https://www.codechef.com/LTIME50/problems/LOSTMAX/

PS : I know, I am printing ‘0’ extra everytime and i got ac after removing it . But i wanted to know test case

at which it fails as a[i]>0 for the problem.

I am getting this error:

a.out(8176,0x7fffee9933c0) malloc: *** error for object 0x7f9313402770: incorrect checksum for freed object - object was probably modified after being freed.

on this case… not sure why though. I just created random input file using testGenerator and cross checked with my code using simple script file.

What is your query exactly? You need code where you get WA? The first test case had numbers <10 while secodn test case ahd numbers <=50 (if this helps)

MY code shows WA .
I just want to know test case for which my code gives WA.