0_0_25435081_21451.cpp:4:11: error: too many decimal points in number
fa:array[1..1000]of longint;
^
0_0_25435081_21451.cpp:5:10: error: too many decimal points in number
f:array[1..1000]of boolean;
^
0_0_25435081_21451.cpp:1:1: error: 'program' does not name a type
program hu;
^
0_0_25435081_21451.cpp:2:1: error: 'var' does not name a type
var
^
0_0_25435081_21451.cpp:4:4: error: found ':' in nested-name-specifier, expected '::'
fa:array[1..1000]of longint;
^
0_0_25435081_21451.cpp:4:2: error: 'fa' does not name a type
fa:array[1..1000]of longint;
^
0_0_25435081_21451.cpp:5:3: error: found ':' in nested-name-specifier, expected '::'
f:array[1..1000]of boolean;
^
0_0_25435081_21451.cpp:5:2: error: 'f' does not name a type
f:array[1..1000]of boolean;
^
0_0_25435081_21451.cpp:6:1: error: 'function' does not name a type
function find(x:longint):longint;
^
0_0_25435081_21451.cpp:7:1: error: 'begin' does not name a type
begin
^
0_0_25435081_21451.cpp:10:6: error: expected constructor, destructor, or type conversion before '(' token
exit(fa[x]);
^
0_0_25435081_21451.cpp:11:1: error: 'end' does not name a type
end;
^
0_0_25435081_21451.cpp:12:1: error: 'begin' does not name a type
begin
^
0_0_25435081_21451.cpp:14:2: error: expected unqualified-id before 'while'
while n<>0 do
^
0_0_25435081_21451.cpp:17:5: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_25435081_21451.cpp:19:5: error: expected unqualified-id before 'for'
for i:=1 to m do
^
0_0_25435081_21451.cpp:22:8: error: 'fa' does not name a type
fa[find(x)]:=find(y);
^
0_0_25435081_21451.cpp:23:7: error: 'end' does not name a type
end;
^
0_0_25435081_21451.cpp:24:13: error: expected constructor, destructor, or type conversion before '(' token
fillchar(f,sizeof(f),true);
^
0_0_25435081_21451.cpp:25:5: error: 'ans' does not name a type
ans:=-1;
^
0_0_25435081_21451.cpp:26:5: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_25435081_21451.cpp:30:10: error: 'f' does not name a type
f[find(i)]:=false;
^
0_0_25435081_21451.cpp:31:9: error: 'end' does not name a type
end;
^
0_0_25435081_21451.cpp:32:12: error: expected constructor, destructor, or type conversion before '(' token
writeln(ans);
^
0_0_25435081_21451.cpp:33:9: error: expected constructor, destructor, or type conversion before '(' token
read(n);
^
0_0_25435081_21451.cpp:34:4: error: 'end' does not name a type
end;
^
0_0_25435081_21451.cpp:35:1: error: 'end' does not name a type
end.
^
|