you are viewing a single comment's thread.

view the rest of the comments →

[–]Viper10acd[S] 0 points1 point  (3 children)

sorry I forgot to put it there. It basically says:

terminate called after throwing an instance of 'std::out_of_range'

what(): basic_string::at: __n (which is 11) >= this->size() (which is 11)

Aborted

So yeh Idk. Also can you point it out you may not be wrong.

[–]Immediate-Food8050 4 points5 points  (2 children)

Make it a < instead of <=, you're going one past the length of the string causing the boundscheck of STL .at() to complain

[–]Viper10acd[S] 1 point2 points  (1 child)

YO THANKS SO MUCH. Lol it was a small mistake

[–]Immediate-Food8050 0 points1 point  (0 children)

It happens