Binary to decimal problem

please kindly check this code also. i am not able to pass every testcase on hackers block.

https://ide.codingblocks.com/s/97964 this is the url of the code

Hi Ayushi,
It seems you have shared the code for a different problem .
Please share it again.

https://ide.codingblocks.com/s/98655 - this would be the coreect url of the code

Hi Ayushi ,
Your code is perfect. Just take the input of num in the main( ) rather than running it for a custom value and your code passes all testcases.

i m sorry but can you explain that again

Please take a look at this code. I have only modified 1 or 2 lines in the main( ).
Code - https://ide.codingblocks.com/s/99059

okh thank you so much.