Binary to Decimal

I am not getting the desired output infact it is showing that pow function is not defined. Could you please tell me whats wrong. The same program is running in other ide.

robin save ur code to online ide of coding block then post the link here we will check

for pow function to use u need to include the math library its not in iostrem

Though my program gives exact output every time I submit but still unable to submit. Its showing test case failed.

save your code to


and then post the link here we will figure out the problem

Heres the link i have provided .Do check it out its showing some test case failures. I just couldnt figure out whats the issue. Also teach me how to solve these kind of issues in future.

only print e=what is to be printed on output
also use cin and cout for in and out
check this