I am getting error. I don’t know the reason.
Finding CB numbers
hello @div_yanshu07
u r getting that error becuase of empty string.
stoll function always takes non empty string as its argument.
if u will empty string then it will throw an error.
check this line->

But everytime I am creating a substring. How it is still empty? please can you correct it.
first iterate all 1 length substring , then all 2 length ,then 3 and so on.
start ur outer loop from [1…n]
and inner loop from 0.
try to correct it.
i will share ur updated code in sometime
pls check ur updated code here->
apart from ur previous mistake.
u were not checking cb number correctly.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.