0_0_20400897_2709.cpp:7:13: error: too many decimal points in number
var t:array[1..1000000] of rec;
^
0_0_20400897_2709.cpp:15:12: error: empty character constant
while s<>'' do
^
0_0_20400897_2709.cpp:35:12: error: empty character constant
while s<>'' do
^
0_0_20400897_2709.cpp:1:1: error: 'type' does not name a type
type rec=record
^
0_0_20400897_2709.cpp:4:12: error: found ':' in nested-name-specifier, expected '::'
sum:longint;
^
0_0_20400897_2709.cpp:4:9: error: 'sum' does not name a type
sum:longint;
^
0_0_20400897_2709.cpp:6:9: error: 'end' does not name a type
end;
^
0_0_20400897_2709.cpp:7:1: error: 'var' does not name a type
var t:array[1..1000000] of rec;
^
0_0_20400897_2709.cpp:8:6: error: found ':' in nested-name-specifier, expected '::'
s:ansistring;
^
0_0_20400897_2709.cpp:8:5: error: 's' does not name a type
s:ansistring;
^
0_0_20400897_2709.cpp:9:5: error: 'js' does not name a type
js,now,i,j,p:longint;
^
0_0_20400897_2709.cpp:10:9: error: found ':' in nested-name-specifier, expected '::'
flag:boolean;
^
0_0_20400897_2709.cpp:10:5: error: 'flag' does not name a type
flag:boolean;
^
0_0_20400897_2709.cpp:11:1: error: 'begin' does not name a type
begin
^
0_0_20400897_2709.cpp:13:3: error: 'js' does not name a type
js:=1;
^
0_0_20400897_2709.cpp:15:3: error: expected unqualified-id before 'while'
while s<>'' do
^
0_0_20400897_2709.cpp:18:7: error: expected unqualified-id before 'for'
for i:=1 to length(s) do
^
0_0_20400897_2709.cpp:24:15: error: 't' does not name a type
t[now].next[s[i]]:=js;
^
0_0_20400897_2709.cpp:25:23: error: expected constructor, destructor, or type conversion before '(' token
fillchar(t[js].next,sizeof(t[js].next),0);
^
0_0_20400897_2709.cpp:26:15: error: 'now' does not name a type
now:=js;
^
0_0_20400897_2709.cpp:28:13: error: 'end' does not name a type
end;
^
0_0_20400897_2709.cpp:29:14: error: expected constructor, destructor, or type conversion before '(' token
inc(t[now].sum);
^
0_0_20400897_2709.cpp:30:9: error: 'end' does not name a type
end;
^
0_0_20400897_2709.cpp:32:13: error: expected constructor, destructor, or type conversion before '(' token
readln(s);
^
0_0_20400897_2709.cpp:33:5: error: 'end' does not name a type
end;
^
0_0_20400897_2709.cpp:34:9: error: expected constructor, destructor, or type conversion before '(' token
readln(s);
^
0_0_20400897_2709.cpp:35:3: error: expected unqualified-id before 'while'
while s<>'' do
^
0_0_20400897_2709.cpp:37:14: error: 'flag' does not name a type
now:=1;flag:=true;
^
0_0_20400897_2709.cpp:38:7: error: expected unqualified-id before 'for'
for i:=1 to length(s) do
^
0_0_20400897_2709.cpp:43:13: error: expected unqualified-id before 'break'
break;
^
0_0_20400897_2709.cpp:44:11: error: 'end' does not name a type
end;
^
0_0_20400897_2709.cpp:45:7: error: expected unqualified-id before 'if'
if flag then writeln(t[now].sum)
^
0_0_20400897_2709.cpp:47:13: error: expected constructor, destructor, or type conversion before '(' token
readln(s);
^
0_0_20400897_2709.cpp:48:5: error: 'end' does not name a type
end;
^
0_0_20400897_2709.cpp:49:1: error: 'end' does not name a type
end.
^
|