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