Если Вы имели в виду "подогнать" под Free Pascal, то так:
varA: Array [1..100] of integer;size,Even,notEven,i: integer;
beginWrite('Set size A :');Read(size);
for i := 1 to size do beginWrite('Set A[', i, ']: ');Read(A[i]);end;
for i := 1 to size do beginif (A[i] mod 2 <> 0) then beginnotEven += A[i];endelse beginEven += A[i];end;end;
Write('Sum even numbers = ', Even);Writeln;Write('Sum notEven numbers = ', notEven);end.