You need the LOOP in FOR loops

Syntax for CURSOR FOR LOOP is:

FOR record_index IN cursor_name
LOOP

END LOOP;