Replace all pi problem

Question link: https://hack.codingblocks.com/contests/c/537/71
My solution: https://ide.codingblocks.com/s/41499
Please tell me why this code isn’t working.

Hey Peya, this code is working fine… there is no issue with this code.