Error 21: BEGIN expected QuickPascal found the start of a statement block without the BEGIN keyword. If BEGIN is present but in a different location, check for any missing keywords such as VAR or DO.