What am i dong wrong in Inversion Count?

https://ide.codingblocks.com/s/195984 is my code link .
please tell the mistake