Shows runtime error , but done same as video :( :(

Which video?
Could you please provide me the link of that video?

https://online.codingblocks.com/app/player/66903/content/45426/1007/lecture

problem discussed on spoj

Hey Muskan, you have done a very minute mistake, in the function multiply, you have written i at the check condition instead of i. Here is the corrected code.