0_0_16685160_17938.cpp:2:15: error: too many decimal points in number
a,b:array[1..1000] of longint;
^
0_0_16685160_17938.cpp:1:1: error: 'var' does not name a type
var n,m,x,y,ans,i:longint;
^
0_0_16685160_17938.cpp:2:5: error: 'a' does not name a type
a,b:array[1..1000] of longint;
^
0_0_16685160_17938.cpp:3:1: error: 'function' does not name a type
function find(x2:longint):longint;
^
0_0_16685160_17938.cpp:4:1: error: 'begin' does not name a type
begin
^
0_0_16685160_17938.cpp:9:1: error: 'end' does not name a type
end;
^
0_0_16685160_17938.cpp:10:1: error: 'procedure' does not name a type
procedure join(x1,y1:longint);
^
0_0_16685160_17938.cpp:11:1: error: 'var' does not name a type
var x0,y0:longint;
^
0_0_16685160_17938.cpp:12:1: error: 'begin' does not name a type
begin
^
0_0_16685160_17938.cpp:14:3: error: 'y0' does not name a type
y0:=find(y1);
^
0_0_16685160_17938.cpp:15:3: error: expected unqualified-id before 'if'
if x0=y0 then
^
0_0_16685160_17938.cpp:17:3: error: 'a' does not name a type
a[x0]:=y0;
^
0_0_16685160_17938.cpp:18:3: error: 'b' does not name a type
b[y0]:=b[x0]+b[y0];
^
0_0_16685160_17938.cpp:19:3: error: 'b' does not name a type
b[x0]:=0;
^
0_0_16685160_17938.cpp:20:1: error: 'end' does not name a type
end;
^
0_0_16685160_17938.cpp:21:1: error: 'begin' does not name a type
begin
^
0_0_16685160_17938.cpp:23:3: error: expected unqualified-id before 'while'
while n<>0 do
^
0_0_16685160_17938.cpp:26:13: error: expected constructor, destructor, or type conversion before '(' token
readln(m);
^
0_0_16685160_17938.cpp:27:7: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_16685160_17938.cpp:29:7: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_16685160_17938.cpp:31:7: error: expected unqualified-id before 'for'
for i:=1 to m do
^
0_0_16685160_17938.cpp:34:15: error: expected constructor, destructor, or type conversion before '(' token
join(x,y);
^
0_0_16685160_17938.cpp:35:9: error: 'end' does not name a type
end;
^
0_0_16685160_17938.cpp:36:7: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_16685160_17938.cpp:39:7: error: 'ans' does not name a type
ans:=ans-1;
^
0_0_16685160_17938.cpp:40:14: error: expected constructor, destructor, or type conversion before '(' token
writeln(ans);
^
0_0_16685160_17938.cpp:41:11: error: expected constructor, destructor, or type conversion before '(' token
read(n);
^
0_0_16685160_17938.cpp:42:5: error: 'end' does not name a type
end;
^
0_0_16685160_17938.cpp:43:3: error: 'readln' does not name a type
readln;
^
0_0_16685160_17938.cpp:44:1: error: 'end' does not name a type
end.
^
|