CB number Question

How are we converting a string to an integer number ? I tried using stoi function but that gives me compilation error, what should I use then ?

what is the error?
send me the link of your code

Yes stoi is used to convert string to integer
stoi() : The stoi() function takes a string as an argument and returns its value.

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.