Do somebody knows why this error? | SoloLearn: Learn to code for FREE!


Do somebody knows why this error?

Well I am getting a segmentation fault error in my little code of finding Youtube Link ID. problem:

6/1/2020 10:39:15 PM

Robin Singh

2 Answers

New Answer


1. i should be declared as s.length() - 1 2. try changing your loop condition to while (i > 0) and put your condition inside an if. If the condition is satisfied, break the loop.


Bobby Fischer Thanks I solved it now. here is the version 2.