0_0_19606901_7133.cpp:3:17: error: too many decimal points in number
next,a,b:array[0..1000000]of longint;
^
0_0_19606901_7133.cpp:1:1: error: 'var' does not name a type
var
^
0_0_19606901_7133.cpp:3:2: error: 'next' does not name a type
next,a,b:array[0..1000000]of longint;
^
0_0_19606901_7133.cpp:4:1: error: 'begin' does not name a type
begin
^
0_0_19606901_7133.cpp:6:1: error: expected unqualified-id before 'for'
for gbbhydbl2:=1 to gbbhydbl1 do
^
0_0_19606901_7133.cpp:9:10: error: expected constructor, destructor, or type conversion before '(' token
fillchar(next,sizeof(next),0);
^
0_0_19606901_7133.cpp:10:2: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_19606901_7133.cpp:12:2: error: expected unqualified-id before 'for'
for i:=1 to m do
^
0_0_19606901_7133.cpp:15:2: error: 'k' does not name a type
k:=1;
^
0_0_19606901_7133.cpp:16:2: error: 'next' does not name a type
next[1]:=1;
^
0_0_19606901_7133.cpp:17:2: error: expected unqualified-id before 'for'
for i:=2 to m do
^
0_0_19606901_7133.cpp:21:3: error: expected unqualified-id before 'if'
if b[k]=b[i] then k:=k+1;
^
0_0_19606901_7133.cpp:22:3: error: 'next' does not name a type
next[i]:=k
^
0_0_19606901_7133.cpp:24:2: error: 'f' does not name a type
f:=0;
^
0_0_19606901_7133.cpp:25:2: error: 'k' does not name a type
k:=1;
^
0_0_19606901_7133.cpp:26:2: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_19606901_7133.cpp:30:3: error: expected unqualified-id before 'if'
if b[k]=a[i] then k:=k+1;
^
0_0_19606901_7133.cpp:31:3: error: expected unqualified-id before 'if'
if k=m then begin writeln(i-1);f:=1;break end
^
0_0_19606901_7133.cpp:31:34: error: 'f' does not name a type
if k=m then begin writeln(i-1);f:=1;break end
^
0_0_19606901_7133.cpp:31:39: error: expected unqualified-id before 'break'
if k=m then begin writeln(i-1);f:=1;break end
^
0_0_19606901_7133.cpp:33:2: error: expected unqualified-id before 'if'
if f=0 then writeln(-1)
^
0_0_19606901_7133.cpp:37:1: error: 'end' does not name a type
end.
^
|