0_0_16322289_10711.cpp:3:12: error: too many decimal points in number
p:array [1..1000000] of longint;
^
0_0_16322289_10711.cpp:13:13: error: empty character constant
while ss<>'' do
^
0_0_16322289_10711.cpp:1:1: error: 'uses' does not name a type
uses math;
^
0_0_16322289_10711.cpp:2:1: error: 'var' does not name a type
var
^
0_0_16322289_10711.cpp:4:3: error: 's' does not name a type
s,ss:ansistring;
^
0_0_16322289_10711.cpp:5:3: error: 'i' does not name a type
i,j,mx,n,ans,id:longint;
^
0_0_16322289_10711.cpp:6:1: error: 'begin' does not name a type
begin
^
0_0_16322289_10711.cpp:12:9: error: expected constructor, destructor, or type conversion before '(' token
readln(ss);
^
0_0_16322289_10711.cpp:13:3: error: expected unqualified-id before 'while'
while ss<>'' do
^
0_0_16322289_10711.cpp:16:5: error: 's' does not name a type
s:='#';
^
0_0_16322289_10711.cpp:17:5: error: 'n' does not name a type
n:=length(ss);
^
0_0_16322289_10711.cpp:27:5: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_16322289_10711.cpp:30:7: error: 's' does not name a type
s:=s+'#';
^
0_0_16322289_10711.cpp:31:5: error: 'end' does not name a type
end;
^
0_0_16322289_10711.cpp:32:5: error: 'mx' does not name a type
mx:=0;
^
0_0_16322289_10711.cpp:33:5: error: 'id' does not name a type
id:=0;
^
0_0_16322289_10711.cpp:34:5: error: 'n' does not name a type
n:=n*2+1;
^
0_0_16322289_10711.cpp:35:5: error: 's' does not name a type
s:=s+'%';
^
0_0_16322289_10711.cpp:36:5: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_16322289_10711.cpp:41:7: error: expected unqualified-id before 'while'
while (p[i]<i) and (s[i-p[i]]=s[i+p[i]]) do inc(p[i]);
^
0_0_16322289_10711.cpp:42:7: error: expected unqualified-id before 'if'
if p[i]+i>mx then
^
0_0_16322289_10711.cpp:45:9: error: 'mx' does not name a type
mx:=p[i]+i;
^
0_0_16322289_10711.cpp:46:7: error: 'end' does not name a type
end;
^
0_0_16322289_10711.cpp:47:5: error: 'end' does not name a type
end;
^
0_0_16322289_10711.cpp:48:5: error: 'ans' does not name a type
ans:=0;
^
0_0_16322289_10711.cpp:49:5: error: expected unqualified-id before 'for'
for i:=1 to n do
^
0_0_16322289_10711.cpp:53:5: error: 'end' does not name a type
end;
^
0_0_16322289_10711.cpp:54:12: error: expected constructor, destructor, or type conversion before '(' token
writeln(ans-1);
^
0_0_16322289_10711.cpp:55:5: error: 'readln' does not name a type
readln;
^
0_0_16322289_10711.cpp:56:11: error: expected constructor, destructor, or type conversion before '(' token
readln(ss);
^
0_0_16322289_10711.cpp:57:3: error: 'end' does not name a type
end;
^
0_0_16322289_10711.cpp:58:1: error: 'end' does not name a type
end.
^
|