0_0_17547906_21465.cpp:11:13: error: too many decimal points in number
f,v:array[1..1000]of longint;
^
0_0_17547906_21465.cpp:12:11: error: too many decimal points in number
e:array[1..10000]of edge;
^
0_0_17547906_21465.cpp:13:11: error: too many decimal points in number
p:array[1..10000]of point;
^
0_0_17547906_21465.cpp:1:1: error: 'type' does not name a type
type
^
0_0_17547906_21465.cpp:4:6: error: found ':' in nested-name-specifier, expected '::'
w:real;
^
0_0_17547906_21465.cpp:4:5: error: 'w' does not name a type
w:real;
^
0_0_17547906_21465.cpp:5:3: error: 'end' does not name a type
end;
^
0_0_17547906_21465.cpp:6:3: error: 'point' does not name a type
point=record
^
0_0_17547906_21465.cpp:8:3: error: 'end' does not name a type
end;
^
0_0_17547906_21465.cpp:9:1: error: 'var' does not name a type
var
^
0_0_17547906_21465.cpp:11:3: error: 'f' does not name a type
f,v:array[1..1000]of longint;
^
0_0_17547906_21465.cpp:12:4: error: found ':' in nested-name-specifier, expected '::'
e:array[1..10000]of edge;
^
0_0_17547906_21465.cpp:12:3: error: 'e' does not name a type
e:array[1..10000]of edge;
^
0_0_17547906_21465.cpp:13:4: error: found ':' in nested-name-specifier, expected '::'
p:array[1..10000]of point;
^
0_0_17547906_21465.cpp:13:3: error: 'p' does not name a type
p:array[1..10000]of point;
^
0_0_17547906_21465.cpp:14:7: error: found ':' in nested-name-specifier, expected '::'
maxE:longint;
^
0_0_17547906_21465.cpp:14:3: error: 'maxE' does not name a type
maxE:longint;
^
0_0_17547906_21465.cpp:15:6: error: found ':' in nested-name-specifier, expected '::'
ans:real;
^
0_0_17547906_21465.cpp:15:3: error: 'ans' does not name a type
ans:real;
^
0_0_17547906_21465.cpp:16:1: error: 'procedure' does not name a type
procedure qsort(l,r:longint);
^
0_0_17547906_21465.cpp:17:1: error: 'var' does not name a type
var
^
0_0_17547906_21465.cpp:19:7: error: found ':' in nested-name-specifier, expected '::'
temp:edge;
^
0_0_17547906_21465.cpp:19:3: error: 'temp' does not name a type
temp:edge;
^
0_0_17547906_21465.cpp:20:6: error: found ':' in nested-name-specifier, expected '::'
key:real;
^
0_0_17547906_21465.cpp:20:3: error: 'key' does not name a type
key:real;
^
0_0_17547906_21465.cpp:21:1: error: 'begin' does not name a type
begin
^
0_0_17547906_21465.cpp:23:3: error: 'x' does not name a type
x:=l;
^
0_0_17547906_21465.cpp:24:3: error: 'y' does not name a type
y:=r;
^
0_0_17547906_21465.cpp:25:3: error: 'key' does not name a type
key:=e[l+random(r-l+1)].w;
^
0_0_17547906_21465.cpp:26:3: error: 'repeat' does not name a type
repeat
^
0_0_17547906_21465.cpp:28:5: error: expected unqualified-id before 'while'
while (e[y].w>key) do dec(y);
^
0_0_17547906_21465.cpp:29:5: error: expected unqualified-id before 'if'
if x<=y then
^
0_0_17547906_21465.cpp:32:7: error: 'e' does not name a type
e[x]:=e[y];
^
0_0_17547906_21465.cpp:33:7: error: 'e' does not name a type
e[y]:=temp;
^
0_0_17547906_21465.cpp:34:10: error: expected constructor, destructor, or type conversion before '(' token
inc(x);
^
0_0_17547906_21465.cpp:35:10: error: expected constructor, destructor, or type conversion before '(' token
dec(y);
^
0_0_17547906_21465.cpp:36:5: error: 'end' does not name a type
end;
^
0_0_17547906_21465.cpp:37:3: error: 'until' does not name a type
until x>y;
^
0_0_17547906_21465.cpp:38:8: error: expected constructor, destructor, or type conversion before '(' token
qsort(l,y);
^
0_0_17547906_21465.cpp:39:8: error: expected constructor, destructor, or type conversion before '(' token
qsort(x,r);
^
0_0_17547906_21465.cpp:40:1: error: 'end' does not name a type
end;
^
0_0_17547906_21465.cpp:41:1: error: 'function' does not name a type
function find(x:longint):longint;
^
0_0_17547906_21465.cpp:42:1: error: 'var' does not name a type
var
^
0_0_17547906_21465.cpp:44:1: error: 'begin' does not name a type
begin
^
0_0_17547906_21465.cpp:46:3: error: expected unqualified-id before 'while'
while f[y]<>0 do y:=f[y];
^
0_0_17547906_21465.cpp:47:3: error: 'root' does not name a type
root:=y;
^
0_0_17547906_21465.cpp:48:3: error: 'y' does not name a type
y:=x;
^
0_0_17547906_21465.cpp:49:3: error: expected unqualified-id before 'while'
while f[y]<>0 do
^
0_0_17547906_21465.cpp:52:5: error: 'f' does not name a type
f[y]:=root;
^
0_0_17547906_21465.cpp:53:5: error: 'y' does not name a type
y:=w;
^
0_0_17547906_21465.cpp:54:3: error: 'end' does not name a type
end;
^
0_0_17547906_21465.cpp:55:3: error: 'find' does not name a type
find:=root;
^
0_0_17547906_21465.cpp:56:1: error: 'end' does not name a type
end;
^
0_0_17547906_21465.cpp:57:1: error: 'procedure' does not name a type
procedure union(x,y:longint);
^
0_0_17547906_21465.cpp:58:1: error: 'begin' does not name a type
begin
^
0_0_17547906_21465.cpp:61:1: error: 'end' does not name a type
end;
^
0_0_17547906_21465.cpp:62:1: error: 'procedure' does not name a type
procedure init;
^
0_0_17547906_21465.cpp:63:1: error: 'var' does not name a type
var
^
0_0_17547906_21465.cpp:65:1: error: 'begin' does not name a type
begin
^
0_0_17547906_21465.cpp:67:3: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_17547906_21465.cpp:69:3: error: 'maxE' does not name a type
maxE:=1;
^
0_0_17547906_21465.cpp:70:3: error: expected unqualified-id before 'for'
for i:=1 to n-1 do
^
0_0_17547906_21465.cpp:74:5: error: 'e' does not name a type
e[maxE].y:=j;
^
0_0_17547906_21465.cpp:75:5: error: 'e' does not name a type
e[maxE].w:=sqrt(sqr(p[i].x-p[j].x)+sqr(p[i].y-p[j].y));
^
0_0_17547906_21465.cpp:76:8: error: expected constructor, destructor, or type conversion before '(' token
inc(maxE);
^
0_0_17547906_21465.cpp:77:3: error: 'end' does not name a type
end;
^
0_0_17547906_21465.cpp:78:3: error: expected unqualified-id before 'for'
for i:=1 to n do v[i]:=i;
^
0_0_17547906_21465.cpp:79:11: error: expected constructor, destructor, or type conversion before '(' token
fillchar(f,sizeof(f),0);
^
0_0_17547906_21465.cpp:80:3: error: 'ans' does not name a type
ans:=0;
^
0_0_17547906_21465.cpp:81:1: error: 'end' does not name a type
end;
^
0_0_17547906_21465.cpp:82:1: error: 'begin' does not name a type
begin
^
0_0_17547906_21465.cpp:84:8: error: expected constructor, destructor, or type conversion before '(' token
qsort(1,maxE);
^
0_0_17547906_21465.cpp:85:3: error: 'k' does not name a type
k:=0;
^
0_0_17547906_21465.cpp:86:3: error: expected unqualified-id before 'for'
for i:=1 to maxE-1 do
^
0_0_17547906_21465.cpp:91:5: error: 'b' does not name a type
b:=find(e[i].y);
^
0_0_17547906_21465.cpp:92:5: error: expected unqualified-id before 'if'
if a<>b then
^
0_0_17547906_21465.cpp:95:12: error: expected identifier before '(' token
union(a,b);
^
0_0_17547906_21465.cpp:95:14: error: expected ')' before ',' token
union(a,b);
^
0_0_17547906_21465.cpp:95:16: error: expected initializer before ')' token
union(a,b);
^
0_0_17547906_21465.cpp:96:10: error: expected constructor, destructor, or type conversion before '(' token
inc(k);
^
0_0_17547906_21465.cpp:97:5: error: 'end' does not name a type
end;
^
0_0_17547906_21465.cpp:98:3: error: 'end' does not name a type
end;
^
0_0_17547906_21465.cpp:99:10: error: expected constructor, destructor, or type conversion before '(' token
writeln(ans:0:2);
^
0_0_17547906_21465.cpp:100:1: error: 'end' does not name a type
end.
^
|