Only two test case is passed

but i have checked it for many inputs below is link of my code


please mention the testcase and its output for which my code is wrong

one of the test cases where your code failed

  1. 5
    5 4 3 2 1
    5
    9 8 7 6 5
    output:1, 5, 3, 0, 8, 6, END
    2)1
    1
    1
    1
    output:2, END

i have change my source code but now it doesnot pass fro 3 cases only just one test case is passed

i have change my source code but now it doesnot pass fro 3 cases only just one test case is passed
link of my modified code is given below


please mention that test case in which it gets failed
i made 3 different cases n>m
n<m
n==m

please send another logic but mention that test case for my code gets failed

5
5 4 3 2 1
5
9 8 7 6 5
correct output:1, 5, 3, 0, 8, 6, END
you can refer this https://ide.codingblocks.com/s/86678