I just tried out your example and now ChatGPT gives some rather bad code instead, leading to incorrect results. It keeps trying to refer to the indexes of the input lines, but gets it wrong because it assumes they're all the same length.