I'm getting this error whenever I try and compile my code. It's for a school assignment and my friend has essentially the same code and his compiles with no issues at all, could anyone shed some light on why this is happening? Cheers!
Obviously if more code is needed then it shall be provided!
The code is obviously not the whole code but the error message is clear enough to say what the problem is. "vector subscript out of range" means that you are trying to access an element in the vector that doesn't exist. You could get that error if you try to access stateParameters[SP] when SP >= stateParameters.size().