0_0_16352241_16872.cpp:4:14: error: too many decimal points in number
next:array[0..1000001]of longint;
^
0_0_16352241_16872.cpp:1:1: error: 'var' does not name a type
var
^
0_0_16352241_16872.cpp:3:3: error: 'i' does not name a type
i,j,k,l,n,m:longint;
^
0_0_16352241_16872.cpp:4:7: error: found ':' in nested-name-specifier, expected '::'
next:array[0..1000001]of longint;
^
0_0_16352241_16872.cpp:4:3: error: 'next' does not name a type
next:array[0..1000001]of longint;
^
0_0_16352241_16872.cpp:5:4: error: found ':' in nested-name-specifier, expected '::'
a:ansistring;
^
0_0_16352241_16872.cpp:5:3: error: 'a' does not name a type
a:ansistring;
^
0_0_16352241_16872.cpp:6:3: error: 'a1' does not name a type
a1,a2,a3:longint;
^
0_0_16352241_16872.cpp:7:3: error: 'ch' does not name a type
ch:char;
^
0_0_16352241_16872.cpp:8:1: error: 'begin' does not name a type
begin
^
0_0_16352241_16872.cpp:10:1: error: expected unqualified-id before 'for'
for ii:=1 to T do begin
^
0_0_16352241_16872.cpp:11:14: error: 'n' does not name a type
readln(a); n:=length(a);
^
0_0_16352241_16872.cpp:12:3: error: 'next' does not name a type
next[0]:=-1; next[1]:=0;
^
0_0_16352241_16872.cpp:12:16: error: 'next' does not name a type
next[0]:=-1; next[1]:=0;
^
0_0_16352241_16872.cpp:13:3: error: expected unqualified-id before 'for'
for i:=2 to n do
^
0_0_16352241_16872.cpp:16:5: error: expected unqualified-id before 'while'
while a[next[j]+1]<>a[i] do
^
0_0_16352241_16872.cpp:19:7: error: 'j' does not name a type
j:=next[j];
^
0_0_16352241_16872.cpp:20:7: error: expected unqualified-id before 'if'
if j=0 then break;
^
0_0_16352241_16872.cpp:21:5: error: 'end' does not name a type
end;
^
0_0_16352241_16872.cpp:22:5: error: expected unqualified-id before 'if'
if j>0 then
^
0_0_16352241_16872.cpp:24:27: error: 'j' does not name a type
next[i]:=next[j]+1; j:=next[j];
^
0_0_16352241_16872.cpp:25:7: error: expected unqualified-id before 'while'
while(j>0)do
^
0_0_16352241_16872.cpp:29:9: error: 'j' does not name a type
j:=next[j];
^
0_0_16352241_16872.cpp:30:7: error: 'end' does not name a type
end;
^
0_0_16352241_16872.cpp:31:5: error: 'end' does not name a type
end;
^
0_0_16352241_16872.cpp:32:3: error: 'end' does not name a type
end;
^
0_0_16352241_16872.cpp:33:3: error: expected unqualified-id before 'if'
if n mod (n-next[n])=0 then
^
0_0_16352241_16872.cpp:36:5: error: expected unqualified-id before 'if'
if a1<>0 then a1:=a1 div(n div(n-next[n]));
^
0_0_16352241_16872.cpp:37:5: error: expected unqualified-id before 'if'
if a3<>0 then a3:=a3 div(n div(n-next[n]));
^
0_0_16352241_16872.cpp:38:3: error: 'end' does not name a type
end;
^
0_0_16352241_16872.cpp:39:10: error: expected constructor, destructor, or type conversion before '(' token
writeln('Case ',ii,': ',a1,' ',a2,' ',a3);
^
0_0_16352241_16872.cpp:40:3: error: 'end' does not name a type
end;
^
0_0_16352241_16872.cpp:41:1: error: 'end' does not name a type
end.
^
|