Inversion count :- what i am doing wrong


is my code link

Hey @Adarshrajpandey
See this https://ide.codingblocks.com/s/195989
If your doubt is resolved please mark it as closed.

what was the problem in my code??

what was wrong in writing the size??

@Adarshrajpandey
size was unnecessary so you should remove it
you were calling merge on right half of array and forgot to do it on left half

If your doubt is resolved please mark it as closed.

https://ide.codingblocks.com/s/195984 in this even if i am calling left merg function then also ans is showing wrong

I think the problem is with is size but what is it i am not able to figure out

actually it was in a hurry to reslove doubt that i deleted the left merge part now i haave added it but https://ide.codingblocks.com/s/195984

but it is with the size

not able to figure out after removing size it runs perfect