Mid point by runner technique

see my code why showing run time error

Please save your code on ide.codingblocks.com and share its link.

Resolved doubts thanks for reaching to me.