Facing some run time error

https://hack.codingblocks.com/app/practice/1/138/problem
this is the question and the code is

u did not take input for p
and also run the loop p time ( which calculate digits after point)