ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

Pascal compiler was upgraded (+)
Posted by Vladimir Yakovlev (USU) 24 Oct 2006 15:00
Pascal compiler was upgraded from FreePascal 2.0.2 to FreePascal 2.0.4.
We compile sources with following command line:
ppc386 %1 -WC -Ci-o-r-t- -Xs -Sdgich -Se10 -l- -vwnh -n -dONLINE_JUDGE
In new release FreePascal became more compatible with Borland Delphi.
Some important examples:
• The following codes get CE now:
uses wincrt;
for i := 1 to n do
    for i := 1 to m do
        DoSomething;
var i: integer; x: extended;
...
x := extended(i);
• The following code works much more fatser than before:
var s1: array[1..100000] of string[30]; s: string;
...
counter := 0;
for i := 1 to 100000 do
    if s1[i] = s then inc(counter);
• The following code works correctly now:
var s: string[4];
...
read(s); {reads the next 4 characters from input}
Pascal submissions since 1.10.2006 were rejudged. About 100 were affected.

Edited by author 24.10.2006 15:07