var
i: Integer;
x: array of integer;
begin
for i := 0 to 9 do
x[i] := i;
end;

ってやりたいんですけど、エラーがでてしまいます。
何がいけないのかおしえてください。