/in/foo.cc:9:17: error: too many decimal points in number
var cover:array[1..50] of rec;
^~~~~
/in/foo.cc:183:26: error: stray '#' in program
fillchar(opt,sizeof(opt),#0);
^
/in/foo.cc:1:1: error: 'type' does not name a type
type rec=record
^~~~
/in/foo.cc:5:6: error: found ':' in nested-name-specifier, expected '::'
value:longint;
^
/in/foo.cc:5:1: error: 'value' does not name a type
value:longint;
^~~~~
/in/foo.cc:7:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:9:1: error: 'var' does not name a type
var cover:array[1..50] of rec;
^~~
/in/foo.cc:11:1: error: 's' does not name a type
s,ts:string;
^
/in/foo.cc:13:1: error: 'n' does not name a type
n,i,k,total,c:longint;
^
/in/foo.cc:15:1: error: 'function' does not name a type
function count(c:char; t:longint):longint;
^~~~~~~~
/in/foo.cc:15:25: error: found ':' in nested-name-specifier, expected '::'
function count(c:char; t:longint):longint;
^
/in/foo.cc:15:24: error: 't' does not name a type
function count(c:char; t:longint):longint;
^
/in/foo.cc:17:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:21:1: error: expected unqualified-id before 'if'
if c='+' then exit(1+t) else
^~
/in/foo.cc:29:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:31:1: error: 'function' does not name a type
function find(s:string):longint;
^~~~~~~~
/in/foo.cc:33:1: error: 'var' does not name a type
var i:longint;
^~~
/in/foo.cc:35:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:39:1: error: expected unqualified-id before 'for'
for i:=1 to total do
^~~
/in/foo.cc:43:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:45:1: error: 'procedure' does not name a type
procedure block(var s:string);
^~~~~~~~~
/in/foo.cc:47:1: error: 'var' does not name a type
var i,j,len:longint; flag:boolean;
^~~
/in/foo.cc:47:26: error: found ':' in nested-name-specifier, expected '::'
var i,j,len:longint; flag:boolean;
^
/in/foo.cc:47:22: error: 'flag' does not name a type
var i,j,len:longint; flag:boolean;
^~~~
/in/foo.cc:49:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:51:17: error: 'j' does not name a type
len:=length(s); j:=0;
^
/in/foo.cc:53:1: error: expected unqualified-id before 'if'
if (s[1]='(')and(s[len]=')') then
^~
/in/foo.cc:65:1: error: expected unqualified-id before 'if'
if (j=0)and(ilen) then exit;
^~
/in/foo.cc:67:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:69:1: error: expected unqualified-id before 'delete'
delete(s,1,1);
^~~~~~
/in/foo.cc:71:1: error: expected unqualified-id before 'delete'
delete(s,length(s),1);
^~~~~~
/in/foo.cc:73:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:75:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:77:1: error: 'function' does not name a type
function cal(s:string):longint;
^~~~~~~~
/in/foo.cc:79:1: error: 'var' does not name a type
var i,len,c,t,delta,min,cut,temp:longint;
^~~
/in/foo.cc:81:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:85:1: error: expected unqualified-id before 'if'
if s[1]'(' then s:='0'+s;
^~
/in/foo.cc:87:1: error: 'len' does not name a type
len:=length(s);
^~~
/in/foo.cc:89:1: error: 'temp' does not name a type
temp:=0;
^~~~
/in/foo.cc:91:4: error: expected constructor, destructor, or type conversion before '(' token
val(s,temp,c);
^
/in/foo.cc:93:1: error: expected unqualified-id before 'if'
if c0 then
^~
/in/foo.cc:97:14: error: 'cut' does not name a type
min:=maxint; cut:=0; delta:=0;
^~~
/in/foo.cc:97:22: error: 'delta' does not name a type
min:=maxint; cut:=0; delta:=0;
^~~~~
/in/foo.cc:99:1: error: expected unqualified-id before 'for'
for i:=1 to len do
^~~
/in/foo.cc:113:1: error: expected unqualified-id before 'if'
if t='0' do
^~
/in/foo.cc:119:4: error: expected constructor, destructor, or type conversion before '(' token
inc(a);
^
/in/foo.cc:121:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:123:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:127:4: error: expected constructor, destructor, or type conversion before '(' token
val(t,find);
^
/in/foo.cc:129:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:131:1: error: 'function' does not name a type
function cal(a:char):longint;
^~~~~~~~
/in/foo.cc:133:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:139:1: error: expected unqualified-id before '-'
'-': exit(2);
^~~
/in/foo.cc:141:1: error: expected unqualified-id before '*'
'*': exit(3);
^~~
/in/foo.cc:143:1: error: expected unqualified-id before '/'
'/': exit(4);
^~~
/in/foo.cc:145:1: error: expected unqualified-id before '('
'(': exit(5);
^~~
/in/foo.cc:147:1: error: expected unqualified-id before ')'
')': exit(6);
^~~
/in/foo.cc:149:1: error: expected unqualified-id before '#'
'#': exit(7);
^~~
/in/foo.cc:151:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:153:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:155:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:159:1: error: expected unqualified-id before 'for'
for m:=1 to t do
^~~
/in/foo.cc:165:7: error: expected constructor, destructor, or type conversion before '(' token
readln(n);
^
/in/foo.cc:167:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:173:1: error: 'k' does not name a type
k:=pos('=',v[i].s);
^
/in/foo.cc:175:4: error: expected constructor, destructor, or type conversion before '(' token
val(copy(v[i].s,k+1,length(v[i].s)-k),v[i].c);
^
/in/foo.cc:177:1: error: expected unqualified-id before 'delete'
delete(v[i].s,k-1,length(v[i].s)-k+2);
^~~~~~
/in/foo.cc:179:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:181:9: error: expected constructor, destructor, or type conversion before '(' token
fillchar(num,sizeof(num),0);
^
/in/foo.cc:183:9: error: expected constructor, destructor, or type conversion before '(' token
fillchar(opt,sizeof(opt),#0);
^
/in/foo.cc:185:1: error: 'st' does not name a type
st:=st+'#';
^~
/in/foo.cc:187:1: error: 'i' does not name a type
i:=1;
^
/in/foo.cc:189:1: error: expected unqualified-id before 'while'
while i='0' then
^~~~~
/in/foo.cc:195:1: error: 'num' does not name a type
num[p2]:=find(i);
^~~
/in/foo.cc:197:1: error: 'end' does not name a type
end else
^~~
/in/foo.cc:209:4: error: expected constructor, destructor, or type conversion before '(' token
dec(p2); dec(p1);
^
/in/foo.cc:209:13: error: expected constructor, destructor, or type conversion before '(' token
dec(p2); dec(p1);
^
/in/foo.cc:211:1: error: 'end' does not name a type
end;
^~~