There are two better solutions to the train problem:
1. Jump on the train itself and see if you can hit the brakes.
2. Throw yourself and/or something else in front of the train and see if that brings it to a stop.
If you can bring the train to a stop, then you can save everyone.