0_0_14108749_14293.cpp:2:14: error: too many decimal points in number
s:array[1..24,1..24] of boolean;
^
0_0_14108749_14293.cpp:2:20: error: too many decimal points in number
s:array[1..24,1..24] of boolean;
^
0_0_14108749_14293.cpp:1:1: error: 'var' does not name a type
var sum,n,t:longint;
^
0_0_14108749_14293.cpp:2:7: error: found ':' in nested-name-specifier, expected '::'
s:array[1..24,1..24] of boolean;
^
0_0_14108749_14293.cpp:2:6: error: 's' does not name a type
s:array[1..24,1..24] of boolean;
^
0_0_14108749_14293.cpp:3:1: error: 'procedure' does not name a type
procedure d(i,sum1,sum2:longint);
^
0_0_14108749_14293.cpp:4:1: error: 'var' does not name a type
var sx,sy,j:longint;
^
0_0_14108749_14293.cpp:5:1: error: 'begin' does not name a type
begin
^
0_0_14108749_14293.cpp:6:53: error: 'end' does not name a type
if i=n+1 then begin if sum1=sum2 then sum:=sum+1; end
^
0_0_14108749_14293.cpp:10:5: error: 'sx' does not name a type
sx:=sum1;sy:=sum2;
^
0_0_14108749_14293.cpp:10:14: error: 'sy' does not name a type
sx:=sum1;sy:=sum2;
^
0_0_14108749_14293.cpp:11:5: error: expected unqualified-id before 'if'
if sum1+1<=t then
^
0_0_14108749_14293.cpp:14:7: error: expected unqualified-id before 'for'
for j:=2 to i do
^
0_0_14108749_14293.cpp:17:9: error: expected unqualified-id before 'if'
if s[j,1+i-j] then sum1:=sum1+1
^
0_0_14108749_14293.cpp:19:9: error: 'end' does not name a type
end;
^
0_0_14108749_14293.cpp:20:7: error: expected unqualified-id before 'if'
if (sum1<=t) and (sum2<=t) then d(i+1,sum1,sum2);
^
0_0_14108749_14293.cpp:21:7: error: 'end' does not name a type
end;
^
0_0_14108749_14293.cpp:22:5: error: 'sum1' does not name a type
sum1:=sx;sum2:=sy;
^
0_0_14108749_14293.cpp:22:14: error: 'sum2' does not name a type
sum1:=sx;sum2:=sy;
^
0_0_14108749_14293.cpp:23:5: error: 's' does not name a type
s[1,i]:=false;
^
0_0_14108749_14293.cpp:24:5: error: expected unqualified-id before 'if'
if sum2+1<=t then
^
0_0_14108749_14293.cpp:27:7: error: expected unqualified-id before 'for'
for j:=2 to i do
^
0_0_14108749_14293.cpp:30:9: error: expected unqualified-id before 'if'
if s[j,1+i-j] then sum1:=sum1+1
^
0_0_14108749_14293.cpp:32:9: error: 'end' does not name a type
end;
^
0_0_14108749_14293.cpp:33:7: error: expected unqualified-id before 'if'
if (sum1<=t) and (sum2<=t) then d(i+1,sum1,sum2);
^
0_0_14108749_14293.cpp:34:7: error: 'end' does not name a type
end;
^
0_0_14108749_14293.cpp:35:1: error: 'end' does not name a type
end;
^
0_0_14108749_14293.cpp:36:1: error: 'end' does not name a type
end;
^
0_0_14108749_14293.cpp:37:1: error: 'begin' does not name a type
begin
^
0_0_14108749_14293.cpp:39:3: error: expected unqualified-id before 'while'
while n>0 do
^
0_0_14108749_14293.cpp:42:5: error: expected unqualified-id before 'if'
if n=24 then begin writeln(822229);read(n);t:=0;sum:=0;end
^
0_0_14108749_14293.cpp:42:44: error: expected constructor, destructor, or type conversion before '(' token
if n=24 then begin writeln(822229);read(n);t:=0;sum:=0;end
^
0_0_14108749_14293.cpp:42:48: error: 't' does not name a type
if n=24 then begin writeln(822229);read(n);t:=0;sum:=0;end
^
0_0_14108749_14293.cpp:42:53: error: 'sum' does not name a type
if n=24 then begin writeln(822229);read(n);t:=0;sum:=0;end
^
0_0_14108749_14293.cpp:42:60: error: 'end' does not name a type
if n=24 then begin writeln(822229);read(n);t:=0;sum:=0;end
^
0_0_14108749_14293.cpp:43:49: error: expected constructor, destructor, or type conversion before '(' token
else if n=23 then begin writeln(431095);read(n);t:=0;sum:=0;end
^
0_0_14108749_14293.cpp:43:53: error: 't' does not name a type
else if n=23 then begin writeln(431095);read(n);t:=0;sum:=0;end
^
0_0_14108749_14293.cpp:43:58: error: 'sum' does not name a type
else if n=23 then begin writeln(431095);read(n);t:=0;sum:=0;end
^
0_0_14108749_14293.cpp:43:65: error: 'end' does not name a type
else if n=23 then begin writeln(431095);read(n);t:=0;sum:=0;end
^
0_0_14108749_14293.cpp:47:7: error: 't' does not name a type
t:=n*(n+1) div 2;
^
0_0_14108749_14293.cpp:48:7: error: expected unqualified-id before 'if'
if t mod 2=0 then begin t:=t div 2;d(1,0,0);end;
^
0_0_14108749_14293.cpp:48:43: error: expected constructor, destructor, or type conversion before '(' token
if t mod 2=0 then begin t:=t div 2;d(1,0,0);end;
^
0_0_14108749_14293.cpp:48:51: error: 'end' does not name a type
if t mod 2=0 then begin t:=t div 2;d(1,0,0);end;
^
0_0_14108749_14293.cpp:49:14: error: expected constructor, destructor, or type conversion before '(' token
writeln(sum);
^
0_0_14108749_14293.cpp:50:11: error: expected constructor, destructor, or type conversion before '(' token
read(n);t:=0;sum:=0;
^
0_0_14108749_14293.cpp:50:15: error: 't' does not name a type
read(n);t:=0;sum:=0;
^
0_0_14108749_14293.cpp:50:20: error: 'sum' does not name a type
read(n);t:=0;sum:=0;
^
0_0_14108749_14293.cpp:51:7: error: 'end' does not name a type
end;
^
0_0_14108749_14293.cpp:52:5: error: 'end' does not name a type
end;
^
0_0_14108749_14293.cpp:53:1: error: 'end' does not name a type
end.
^
|