Ответ:

Solution:

The correct variant uses the gerund after the verb 'forgot' when referring to an action that was done but the speaker forgot about doing it. The infinitive is used when the speaker forgot to do something.

Oh, no! I forgot to switch off the cooker.