Does Online Judge's FPC support dynamic arrays?

Write here if you have problems with your Pascal source code

Moderator: Board moderators

Post Reply
andmej
Experienced poster
Posts: 158
Joined: Sun Feb 04, 2007 7:45 pm
Location: Medellin, Colombia

Does Online Judge's FPC support dynamic arrays?

Post by andmej »

Hello all.

I have a code that perfectly compiles on my machine (WinXP - FPC 2.0.4) but when I send it to the judge I receive:
Free Pascal Compiler version 1.0.6 [2002/05/23] for i386
Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386

Compiling 05310609_24.p
05310609_24.p(10,18) Fatal: Syntax error, [ expected but OF found
Line 10 is: Puntos : Array of Integer;

Doesn't the compiler support dynamic arrays? I see it uses Free Pascal Compiler Version 1.0.6, why such an old version?

Edit:
So, I edited the same program to not use dynamic arrays, but now I get this (It still compiles in my machine):
Here are the compiler error messages:

Free Pascal Compiler version 1.0.6 [2002/05/23] for i386
Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386

Compiling 05311681_24.p


--
No error message at all?

Is this something wrong with the judge? Help me please!

Thanks.
Post Reply

Return to “Pascal”