/in/foo.cc:3:13: error: too many decimal points in number
var a:array[1..1000]of longint;
^~~~~~~
/in/foo.cc:1:1: error: 'program' does not name a type
program kifhjk;
^~~~~~~
/in/foo.cc:3:1: error: 'var' does not name a type
var a:array[1..1000]of longint;
^~~
/in/foo.cc:5:1: error: 'n' does not name a type
n,i,j,k,sum:longint;
^
/in/foo.cc:7:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:11:1: error: expected unqualified-id before 'for'
for i:= 1 to n do
^~~
/in/foo.cc:15:1: error: expected unqualified-id before 'for'
for i:=n-1 downto 1 do
^~~
/in/foo.cc:21:1: error: 'sum' does not name a type
sum:=0;
^~~
/in/foo.cc:23:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:27:8: error: expected constructor, destructor, or type conversion before '(' token
writeln(sum);
^
/in/foo.cc:29:1: error: 'end' does not name a type
end.
^~~