I wrote this code and I have no idea why the code doesn\'t work. I checked if there is overflow or an infinite loop or an index out of vector size and I don\'t see any synta