this is the code for converting string to integer
my solution–https://ide.codingblocks.com/s/254726
i am getting an error please tell me how to resolve it and why this error is occurring.
also tell if i am applying any wrong approach to solve this problem.