/in/foo.cc:2:9: error: too many decimal points in number
f:array[0..100,-2000..2000]of boolean;
^~~~~~
/in/foo.cc:2:17: error: too many decimal points in number
f:array[0..100,-2000..2000]of boolean;
^~~~~~~~~~
/in/foo.cc:3:9: error: too many decimal points in number
a:array[1..1000]of longint;
^~~~~~~
/in/foo.cc:19:37: warning: character constant too long for its type
if i>0 then writeln(i) else writeln('Happy');
^~~~~~~
/in/foo.cc:1:1: error: 'var' does not name a type
var
^~~
/in/foo.cc:3:2: error: found ':' in nested-name-specifier, expected '::'
a:array[1..1000]of longint;
^
/in/foo.cc:3:1: error: 'a' does not name a type
a:array[1..1000]of longint;
^
/in/foo.cc:4:1: error: 'b' does not name a type
b,c,d,e,g,h,i,j,k,l,m,n:longint;
^
/in/foo.cc:5:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:7:1: error: expected unqualified-id before 'for'
for i:=1 to n do read(a[i]);
^~~
/in/foo.cc:8:1: error: 'f' does not name a type
f[0,k]:=true;
^
/in/foo.cc:10:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:15:1: error: expected unqualified-id before 'if'
if j-a[i]>=-m then f[i,j-a[i]]:=true;
^~
/in/foo.cc:16:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:17:1: error: expected unqualified-id before 'for'
for i:=m downto 0 do
^~~
/in/foo.cc:19:1: error: expected unqualified-id before 'if'
if i>0 then writeln(i) else writeln('Happy');
^~
/in/foo.cc:20:1: error: 'end' does not name a type
end.
^~~