Hello, I was programming a quick AI that predicts the next letter in a text. It worked great, but I was using vectors. Vectors are slow. I replace everything with arrays, and there you go, Thread 1: EXC_BAD_ACCESS (code=2, address=0x16f603ff8).
I am a complete beginner with c++ and may have done some stupid thing / may have missed something obvious.
I just cannot track down where the error comes from.
File is given. I use Xcode.