I am getting wrong on test case 2 and run time error on test case 3 can u plz help

@coe17b014 while converting string to int make character as digit then multiply with pow.( at line 8 use (m[i]-‘0’) instead of m[i].
and update your code for a corner case which is when n=0.