First non repeating charecter in stream

why this given code in the video is not running and showing runtime error?

please share the code u have made in cb ide so that i can help u debugg it

https://rextester.com/HMO93233

Hi, the code is correct, probably u are giving incorrect inputs or in case u are trying to submit on some hackerblock question send me the link of the question
since in vs code the code worked fine for me

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.