/in/foo.cc:3:12: error: too many decimal points in number
a:array[1..366,1..20000]of record
^~~~~~
/in/foo.cc:3:19: error: too many decimal points in number
a:array[1..366,1..20000]of record
^~~~~~~~
/in/foo.cc:8:12: error: too many decimal points in number
p:array[1..130]of longint;
^~~~~~
/in/foo.cc:9:17: error: too many decimal points in number
q,temp:array[0..100]of longint;
^~~~~~
/in/foo.cc:10:12: error: too many decimal points in number
f:array[0..366,0..732]of longint;
^~~~~~
/in/foo.cc:10:19: error: too many decimal points in number
f:array[0..366,0..732]of longint;
^~~~~~
/in/foo.cc:11:14: error: too many decimal points in number
num:array[1..366]of integer;
^~~~~~
/in/foo.cc:108:57: warning: multi-character character constant [-Wmultichar]
if (k>1)and(f[y1,k]=0)and(f[y1,k-1]=0) then writeln('-1')
^~~~
/in/foo.cc:1:1: error: 'program' does not name a type
program ctsc2000;
^~~~~~~
/in/foo.cc:2:1: error: 'var' does not name a type
var d1,l1,d2,k,y,z,y1,b,c,d,e,r,t,n,m,i,j,l:longint;
^~~
/in/foo.cc:3:5: error: found ':' in nested-name-specifier, expected '::'
a:array[1..366,1..20000]of record
^
/in/foo.cc:3:4: error: 'a' does not name a type
a:array[1..366,1..20000]of record
^
/in/foo.cc:5:6: error: 'end' does not name a type
end;
^~~
/in/foo.cc:6:6: error: 's1' does not name a type
s1,s:string;
^~
/in/foo.cc:7:4: error: 't1' does not name a type
t1:char;
^~
/in/foo.cc:8:5: error: found ':' in nested-name-specifier, expected '::'
p:array[1..130]of longint;
^
/in/foo.cc:8:4: error: 'p' does not name a type
p:array[1..130]of longint;
^
/in/foo.cc:9:4: error: 'q' does not name a type
q,temp:array[0..100]of longint;
^
/in/foo.cc:10:5: error: found ':' in nested-name-specifier, expected '::'
f:array[0..366,0..732]of longint;
^
/in/foo.cc:10:4: error: 'f' does not name a type
f:array[0..366,0..732]of longint;
^
/in/foo.cc:11:7: error: found ':' in nested-name-specifier, expected '::'
num:array[1..366]of integer;
^
/in/foo.cc:11:4: error: 'num' does not name a type
num:array[1..366]of integer;
^~~
/in/foo.cc:12:1: error: 'function' does not name a type
function calc(b,c:integer):longint;
^~~~~~~~
/in/foo.cc:13:1: error: 'var' does not name a type
var s,i:integer;
^~~
/in/foo.cc:14:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:16:3: error: expected unqualified-id before 'for'
for i:=1to b-1 do
^~~
/in/foo.cc:18:3: error: 's' does not name a type
s:=s+c;
^
/in/foo.cc:19:3: error: 'calc' does not name a type
calc:=s;
^~~~
/in/foo.cc:20:3: error: 'end' does not name a type
end;
^~~
/in/foo.cc:21:1: error: 'procedure' does not name a type
procedure sort(w,i,j:integer);
^~~~~~~~~
/in/foo.cc:22:1: error: 'var' does not name a type
var x,y,mid,s:longint;
^~~
/in/foo.cc:23:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:25:2: error: 'y' does not name a type
y:=j;
^
/in/foo.cc:26:2: error: 'mid' does not name a type
mid:=f[w,(i+j)div 2];
^~~
/in/foo.cc:27:2: error: 'repeat' does not name a type
repeat
^~~~~~
/in/foo.cc:29:3: error: expected unqualified-id before 'while'
while f[w,y]<mid do dec(y);
^~~~~
/in/foo.cc:30:3: error: expected unqualified-id before 'if'
if x<=y then
^~
/in/foo.cc:33:4: error: 'f' does not name a type
f[w,x]:=f[w,y];
^
/in/foo.cc:34:4: error: 'f' does not name a type
f[w,y]:=s;
^
/in/foo.cc:35:7: error: expected constructor, destructor, or type conversion before '(' token
dec(y);inc(x);
^
/in/foo.cc:35:14: error: expected constructor, destructor, or type conversion before '(' token
dec(y);inc(x);
^
/in/foo.cc:36:4: error: 'end' does not name a type
end;
^~~
/in/foo.cc:37:4: error: 'until' does not name a type
until x>y;
^~~~~
/in/foo.cc:38:3: error: expected unqualified-id before 'if'
if i<y then sort(w,i,y);
^~
/in/foo.cc:39:3: error: expected unqualified-id before 'if'
if j>x then sort(w,x,j);
^~
/in/foo.cc:40:3: error: 'end' does not name a type
end;
^~~
/in/foo.cc:41:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:43:8: error: expected constructor, destructor, or type conversion before '(' token
readln(y);
^
/in/foo.cc:44:10: error: expected constructor, destructor, or type conversion before '(' token
fillchar(num,sizeof(num),0);
^
/in/foo.cc:45:2: error: 'q' does not name a type
q[0]:=0;
^
/in/foo.cc:46:2: error: expected unqualified-id before 'for'
for i:=1to 12 do
^~~
/in/foo.cc:49:4: error: expected unqualified-id before numeric constant
4,6,9,11:q[i]:=30;
^
/in/foo.cc:50:4: error: 'end' does not name a type
end;
^~~
/in/foo.cc:51:3: error: expected unqualified-id before 'if'
if (y mod 400=0)or ((y mod 4=0)and(y mod 100<>0))then
^~
/in/foo.cc:54:4: error: 'q' does not name a type
q[2]:=29;
^
/in/foo.cc:55:4: error: 'end' does not name a type
end
^~~
/in/foo.cc:56:24: error: 'y1' does not name a type
else begin q[2]:=28;y1:=365;end;
^~
/in/foo.cc:56:32: error: 'end' does not name a type
else begin q[2]:=28;y1:=365;end;
^~~
/in/foo.cc:57:10: error: expected constructor, destructor, or type conversion before '(' token
readln(r);
^
/in/foo.cc:58:2: error: expected unqualified-id before 'for'
for i:=1to r do
^~~
/in/foo.cc:61:3: error: 'j' does not name a type
j:=pos(' ',s);s1:=copy(s,1,j-1);
^
/in/foo.cc:61:17: error: 's1' does not name a type
j:=pos(' ',s);s1:=copy(s,1,j-1);
^~
/in/foo.cc:62:3: error: expected unqualified-id before 'delete'
delete(s,1,j+3);
^~~~~~
/in/foo.cc:63:3: error: 'j' does not name a type
j:=pos('/',s1);
^
/in/foo.cc:64:6: error: expected constructor, destructor, or type conversion before '(' token
val(copy(s1,1,j-1),b);
^
/in/foo.cc:65:6: error: expected constructor, destructor, or type conversion before '(' token
val(copy(s1,j+1,length(s1)-j),c);
^
/in/foo.cc:66:3: error: 'j' does not name a type
j:=pos(' ',s);
^
/in/foo.cc:67:3: error: 's1' does not name a type
s1:=copy(s,1,j-1);
^~
/in/foo.cc:68:3: error: expected unqualified-id before 'delete'
delete(s,1,j);
^~~~~~
/in/foo.cc:69:3: error: 'j' does not name a type
j:=pos('/',s1);
^
/in/foo.cc:70:6: error: expected constructor, destructor, or type conversion before '(' token
val(copy(s1,1,j-1),d);
^
/in/foo.cc:71:6: error: expected constructor, destructor, or type conversion before '(' token
val(copy(s1,j+1,length(s1)-j),e);
^
/in/foo.cc:72:3: error: 'd1' does not name a type
d1:=calc(b,c);
^~
/in/foo.cc:73:3: error: 'd2' does not name a type
d2:=calc(d,e);
^~
/in/foo.cc:74:6: error: expected constructor, destructor, or type conversion before '(' token
inc(num[d2]);
^
/in/foo.cc:75:3: error: 'a' does not name a type
a[d2,num[d2]].x:=d1;
^
/in/foo.cc:76:3: error: 'a' does not name a type
a[d2,num[d2]].y:=d2-d1;
^
/in/foo.cc:77:6: error: expected constructor, destructor, or type conversion before '(' token
val(s,a[d2,num[d2]].z);
^
/in/foo.cc:78:3: error: 'end' does not name a type
end;
^~~
/in/foo.cc:79:3: error: expected unqualified-id before 'for'
for i:=1to t do
^~~
/in/foo.cc:81:12: error: expected constructor, destructor, or type conversion before '(' token
fillchar(f,sizeof(f),0);
^
/in/foo.cc:82:4: error: expected unqualified-id before 'for'
for i:=1to y1 do
^~~
/in/foo.cc:85:5: error: expected unqualified-id before 'for'
for j:=1 to num[i] do
^~~
/in/foo.cc:88:9: error: expected unqualified-id before 'for'
for l:=k+1 to 2*k do
^~~
/in/foo.cc:90:13: error: expected constructor, destructor, or type conversion before '('