foo.cc:1:16: error: too many decimal points in number
var a,b:array [1..1000] of longint;
^~~~~~~
foo.cc:1:1: error: 'var' does not name a type; did you mean 'char'?
var a,b:array [1..1000] of longint;
^~~
char
foo.cc:3:1: error: 'm' does not name a type
m,n,i,j,c:longint;
^
foo.cc:5:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:9:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
foo.cc:13:1: error: 'c' does not name a type
c:=a[n];
^
foo.cc:15:1: error: expected unqualified-id before 'for'
for i:=n-1 downto 1 do
^~~
foo.cc:23:1: error: 'b' does not name a type
b[i]:=a[i];
^
foo.cc:25:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:27:1: error: expected unqualified-id before 'for'
for i:=1 to n-1 do
^~~
foo.cc:31:8: error: expected constructor, destructor, or type conversion before '(' token
writeln(m+c);
^
foo.cc:33:1: error: 'end' does not name a type; did you mean 'enum'?
end.
^~~
enum
[Hydro](https://hydro.ac)提供评测服务