0_0_34757929_18990.cpp:2:15: error: too many decimal points in number
var f:array[0..1010,0..1010,0..1] of int64;
^
0_0_34757929_18990.cpp:2:23: error: too many decimal points in number
var f:array[0..1010,0..1010,0..1] of int64;
^
0_0_34757929_18990.cpp:2:31: error: too many decimal points in number
var f:array[0..1010,0..1010,0..1] of int64;
^
0_0_34757929_18990.cpp:3:15: error: too many decimal points in number
g:array[0..1010,0..1010] of longint;
^
0_0_34757929_18990.cpp:3:23: error: too many decimal points in number
g:array[0..1010,0..1010] of longint;
^
0_0_34757929_18990.cpp:4:15: error: too many decimal points in number
d:array[0..1010] of longint;
^
0_0_34757929_18990.cpp:1:7: error: 'oo' does not name a type
const oo=1000000000000000;
^
0_0_34757929_18990.cpp:2:1: error: 'var' does not name a type
var f:array[0..1010,0..1010,0..1] of int64;
^
0_0_34757929_18990.cpp:3:8: error: found ':' in nested-name-specifier, expected '::'
g:array[0..1010,0..1010] of longint;
^
0_0_34757929_18990.cpp:3:7: error: 'g' does not name a type
g:array[0..1010,0..1010] of longint;
^
0_0_34757929_18990.cpp:4:8: error: found ':' in nested-name-specifier, expected '::'
d:array[0..1010] of longint;
^
0_0_34757929_18990.cpp:4:7: error: 'd' does not name a type
d:array[0..1010] of longint;
^
0_0_34757929_18990.cpp:5:7: error: 'n' does not name a type
n,i,j,l,p:longint;
^
0_0_34757929_18990.cpp:6:11: error: found ':' in nested-name-specifier, expected '::'
flag:boolean;
^
0_0_34757929_18990.cpp:6:7: error: 'flag' does not name a type
flag:boolean;
^
0_0_34757929_18990.cpp:8:7: error: 'procedure' does not name a type
procedure sort(l,r:longint);
^
0_0_34757929_18990.cpp:9:7: error: 'var' does not name a type
var i,j,mid,temp:longint;
^
0_0_34757929_18990.cpp:10:7: error: 'begin' does not name a type
begin
^
0_0_34757929_18990.cpp:11:19: error: 'j' does not name a type
i:=l; j:=r;
^
0_0_34757929_18990.cpp:12:13: error: 'mid' does not name a type
mid:=d[(l+r)>>1];
^
0_0_34757929_18990.cpp:13:13: error: expected unqualified-id before 'while'
while i<=j do
^
0_0_34757929_18990.cpp:16:19: error: expected unqualified-id before 'while'
while d[j]>mid do dec(j);
^
0_0_34757929_18990.cpp:17:19: error: expected unqualified-id before 'if'
if i<=j then
^
0_0_34757929_18990.cpp:20:25: error: 'd' does not name a type
d[i]:=d[j];
^
0_0_34757929_18990.cpp:21:25: error: 'd' does not name a type
d[j]:=temp;
^
0_0_34757929_18990.cpp:22:28: error: expected constructor, destructor, or type conversion before '(' token
inc(i); dec(j);
^
0_0_34757929_18990.cpp:22:36: error: expected constructor, destructor, or type conversion before '(' token
inc(i); dec(j);
^
0_0_34757929_18990.cpp:23:19: error: 'end' does not name a type
end;
^
0_0_34757929_18990.cpp:24:13: error: 'end' does not name a type
end;
^
0_0_34757929_18990.cpp:25:13: error: expected unqualified-id before 'if'
if i<r then sort(i,r);
^
0_0_34757929_18990.cpp:26:13: error: expected unqualified-id before 'if'
if j>l then sort(l,j);
^
0_0_34757929_18990.cpp:27:7: error: 'end' does not name a type
end;
^
0_0_34757929_18990.cpp:29:7: error: 'function' does not name a type
function min(a,b:int64):int64;
^
0_0_34757929_18990.cpp:30:7: error: 'begin' does not name a type
begin
^
0_0_34757929_18990.cpp:31:38: error: expected constructor, destructor, or type conversion before '(' token
if a>b then exit(b); exit(a)
^
0_0_34757929_18990.cpp:34:1: error: 'begin' does not name a type
begin
^
0_0_34757929_18990.cpp:36:7: error: 'flag' does not name a type
flag:=true;
^
0_0_34757929_18990.cpp:37:7: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_34757929_18990.cpp:40:13: error: expected unqualified-id before 'if'
if d[i]=l then flag:=false;
^
0_0_34757929_18990.cpp:41:7: error: 'end' does not name a type
end;
^
0_0_34757929_18990.cpp:42:7: error: expected unqualified-id before 'if'
if flag then
^
0_0_34757929_18990.cpp:43:21: error: 'd' does not name a type
begin inc(n); d[n]:=l; end;
^
0_0_34757929_18990.cpp:43:30: error: 'end' does not name a type
begin inc(n); d[n]:=l; end;
^
0_0_34757929_18990.cpp:44:11: error: expected constructor, destructor, or type conversion before '(' token
sort(1,n);
^
0_0_34757929_18990.cpp:46:7: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_34757929_18990.cpp:48:22: error: expected unqualified-id before 'break'
begin p:=i; break; end;
^
0_0_34757929_18990.cpp:48:29: error: 'end' does not name a type
begin p:=i; break; end;
^
0_0_34757929_18990.cpp:50:7: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_34757929_18990.cpp:54:16: error: expected unqualified-id before 'if'
if ((p<i)or(p>j))and(flag) then dec(g[i,j]);
^
0_0_34757929_18990.cpp:55:10: error: 'end' does not name a type
end;
^
0_0_34757929_18990.cpp:57:7: error: expected unqualified-id before 'for'
for i:=0 to 1010 do
^
0_0_34757929_18990.cpp:61:16: error: 'f' does not name a type
f[i,j,1]:=oo;
^
0_0_34757929_18990.cpp:62:10: error: 'end' does not name a type
end;
^
0_0_34757929_18990.cpp:63:7: error: 'f' does not name a type
f[p,p,0]:=0; f[p,p,1]:=0;
^
0_0_34757929_18990.cpp:63:20: error: 'f' does not name a type
f[p,p,0]:=0; f[p,p,1]:=0;
^
0_0_34757929_18990.cpp:65:7: error: expected unqualified-id before 'for'
for j:=p to n do
^
0_0_34757929_18990.cpp:70:16: error: 'f' does not name a type
f[i,j,1]:=min(f[i,j-1,0]+g[i,j-1]*(d[j]-d[i]),
^
0_0_34757929_18990.cpp:72:10: error: 'end' does not name a type
end;
^
0_0_34757929_18990.cpp:73:14: error: expected constructor, destructor, or type conversion before '(' token
writeln(min(f[1,n,0],f[1,n,1]));
^
0_0_34757929_18990.cpp:74:1: error: 'end' does not name a type
end.
^
|