Why LSTM only accept fixed length input

The slides shows LSTM only accepts fixed length input

Why is that? I thought the program can take the variable length input to LSTM units and just stop when sentence ends.

Does variable length input introduce problems in cost function calculation or backward prop?

LSTM does accept variable sequence size as input. However, for each batch, the sequences need to be the same size.