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