foo.cpp:4:17: error: too many decimal points in number
jie,jia:array[1..26] of longint;
^
foo.cpp:26:19: warning: character constant too long for its type [enabled by default]
writeln('Failed');
^
foo.cpp:37:19: warning: character constant too long for its type [enabled by default]
writeln('Failed');
^
foo.cpp:48:15: warning: character constant too long for its type [enabled by default]
writeln('Failed');
^
foo.cpp:1:1: error: 'var' does not name a type
var
^
foo.cpp:3:4: error: found ':' in nested-name-specifier, expected '::'
i:longint;
^
foo.cpp:3:3: error: 'i' does not name a type
i:longint;
^
foo.cpp:4:3: error: 'jie' does not name a type
jie,jia:array[1..26] of longint;
^
foo.cpp:5:3: error: expected unqualified-id before '{' token
{
^
foo.cpp:11:1: error: 'begin' does not name a type
begin
^
foo.cpp:13:9: error: expected constructor, destructor, or type conversion before '(' token
readln(pb);
^
foo.cpp:14:9: error: expected constructor, destructor, or type conversion before '(' token
readln(ps);
^
foo.cpp:16:3: error: expected unqualified-id before 'for'
for i:=1 to length(pa) do
^
foo.cpp:22:5: error: expected unqualified-id before 'if'
if jie[ord(pa[i])-ord('A')+1]=0
^
foo.cpp:27:11: error: 'halt' does not name a type
halt;
^
foo.cpp:28:9: error: 'end' does not name a type
end;
^
foo.cpp:30:3: error: expected unqualified-id before '{' token
{
^
foo.cpp:33:5: error: expected unqualified-id before 'if'
if jia[ord(pb[i])-ord('A')+1]=0
^
foo.cpp:38:11: error: 'halt' does not name a type
halt;
^
foo.cpp:39:9: error: 'end' does not name a type
end;
^
foo.cpp:40:3: error: 'end' does not name a type
end;
^
foo.cpp:42:3: error: expected unqualified-id before '{' token
{
^
foo.cpp:45:3: error: expected unqualified-id before 'for'
for i:=1 to 26 do
^
foo.cpp:49:7: error: 'halt' does not name a type
halt;
^
foo.cpp:50:5: error: 'end' does not name a type
end;
^
foo.cpp:52:3: error: expected unqualified-id before '{' token
{
^
foo.cpp:55:3: error: expected unqualified-id before 'for'
for i:=1 to length(ps) do
^
foo.cpp:59:1: error: 'end' does not name a type
end.
^