0_0_13930212_17011.cpp:2:21: error: too many decimal points in number
var a,w,sum,q:array[0..2000]of int64;
^
0_0_13930212_17011.cpp:4:13: error: too many decimal points in number
f:array[1..1010,1..1010]of int64;
^
0_0_13930212_17011.cpp:4:21: error: too many decimal points in number
f:array[1..1010,1..1010]of int64;
^
0_0_13930212_17011.cpp:1:1: error: 'program' does not name a type
program lawerence;
^
0_0_13930212_17011.cpp:2:1: error: 'var' does not name a type
var a,w,sum,q:array[0..2000]of int64;
^
0_0_13930212_17011.cpp:3:5: error: 'op' does not name a type
op,cl,n,m,i,j:Longint;
^
0_0_13930212_17011.cpp:4:6: error: found ':' in nested-name-specifier, expected '::'
f:array[1..1010,1..1010]of int64;
^
0_0_13930212_17011.cpp:4:5: error: 'f' does not name a type
f:array[1..1010,1..1010]of int64;
^
0_0_13930212_17011.cpp:5:1: error: 'function' does not name a type
function dy(i,k,s:longint):int64;
^
0_0_13930212_17011.cpp:6:1: error: 'begin' does not name a type
begin
^
0_0_13930212_17011.cpp:8:1: error: 'end' does not name a type
end;
^
0_0_13930212_17011.cpp:9:1: error: 'function' does not name a type
function dx(k,s:longint):int64;
^
0_0_13930212_17011.cpp:10:1: error: 'begin' does not name a type
begin
^
0_0_13930212_17011.cpp:12:1: error: 'end' does not name a type
end;
^
0_0_13930212_17011.cpp:13:1: error: 'begin' does not name a type
begin
^
0_0_13930212_17011.cpp:15:3: error: expected unqualified-id before 'while'
while n<>0 do begin
^
0_0_13930212_17011.cpp:17:13: error: expected constructor, destructor, or type conversion before '(' token
fillchar(sum,sizeof(sum),0);
^
0_0_13930212_17011.cpp:18:13: error: expected constructor, destructor, or type conversion before '(' token
fillchar(f,sizeof(f),0);
^
0_0_13930212_17011.cpp:19:5: error: expected unqualified-id before 'for'
for i:=1 to n do read(a[i]);
^
0_0_13930212_17011.cpp:20:5: error: expected unqualified-id before 'for'
for i:=1 to n do begin sum[i]:=sum[i-1]+a[i];w[i]:=w[i-1]+a[i]*sum[i-1];end;
^
0_0_13930212_17011.cpp:20:50: error: 'w' does not name a type
for i:=1 to n do begin sum[i]:=sum[i-1]+a[i];w[i]:=w[i-1]+a[i]*sum[i-1];end;
^
0_0_13930212_17011.cpp:20:77: error: 'end' does not name a type
for i:=1 to n do begin sum[i]:=sum[i-1]+a[i];w[i]:=w[i-1]+a[i]*sum[i-1];end;
^
0_0_13930212_17011.cpp:21:5: error: expected unqualified-id before 'for'
for i:=1 to n do f[1,i]:=w[i];
^
0_0_13930212_17011.cpp:22:5: error: expected unqualified-id before 'for'
for i:=2 to m+1 do begin
^
0_0_13930212_17011.cpp:23:13: error: 'cl' does not name a type
op:=1;cl:=1;q[1]:=i-1;
^
0_0_13930212_17011.cpp:23:19: error: 'q' does not name a type
op:=1;cl:=1;q[1]:=i-1;
^
0_0_13930212_17011.cpp:24:7: error: expected unqualified-id before 'for'
for j:=i to n do begin
^
0_0_13930212_17011.cpp:26:9: error: 'f' does not name a type
f[i,j]:=f[i-1,q[op]]+w[j]-w[q[op]]-(sum[j]-sum[q[op]])*(sum[q[op]]);
^
0_0_13930212_17011.cpp:27:9: error: expected unqualified-id before 'while'
while(op<cl)and(dy(i,q[cl],q[cl-1])*dx(j,q[cl])>=dy(i,j,q[cl])*dx(q[cl],q[cl-1]))do dec(cl);
^
0_0_13930212_17011.cpp:28:12: error: expected constructor, destructor, or type conversion before '(' token
inc(cl);q[cl]:=j;
^
0_0_13930212_17011.cpp:28:17: error: 'q' does not name a type
inc(cl);q[cl]:=j;
^
0_0_13930212_17011.cpp:29:7: error: 'end' does not name a type
end;
^
0_0_13930212_17011.cpp:30:5: error: 'end' does not name a type
end;
^
0_0_13930212_17011.cpp:31:12: error: expected constructor, destructor, or type conversion before '(' token
writeln(f[m+1,n]);
^
0_0_13930212_17011.cpp:32:11: error: expected constructor, destructor, or type conversion before '(' token
readln(n,m);
^
0_0_13930212_17011.cpp:33:3: error: 'end' does not name a type
end;
^
0_0_13930212_17011.cpp:34:1: error: 'end' does not name a type
end.
^
|