Recursion-convert string to int


why is it showing error in line 6

Hello @Vibhuti0206,

line 6: length is a function.
Modification:
s1.length()==1

line 10 and 11: variables are missing

line 10: what is operation of following expression:
str.subs1(1)

Correct them.
Let me know if you still face any issue.

Hope, this would help.
Give a like, if you are satisfied.