./Main.java:1: error: class, interface, or enum expected
type rec=record
^
./Main.java:5: error: class, interface, or enum expected
value:longint;
^
./Main.java:7: error: class, interface, or enum expected
end;
^
./Main.java:9: error: class, interface, or enum expected
var cover:array[1..50] of rec;
^
./Main.java:11: error: class, interface, or enum expected
s,ts:string;
^
./Main.java:13: error: class, interface, or enum expected
n,i,k,total,c:longint;
^
./Main.java:15: error: class, interface, or enum expected
function count(c:char; t:longint):longint;
^
./Main.java:15: error: class, interface, or enum expected
function count(c:char; t:longint):longint;
^
./Main.java:17: error: class, interface, or enum expected
begin
^
./Main.java:21: error: class, interface, or enum expected
if c='+' then exit(1+t) else
^
./Main.java:29: error: class, interface, or enum expected
end;
^
./Main.java:31: error: class, interface, or enum expected
function find(s:string):longint;
^
./Main.java:33: error: class, interface, or enum expected
var i:longint;
^
./Main.java:35: error: class, interface, or enum expected
begin
^
./Main.java:39: error: class, interface, or enum expected
for i:=1 to total do
^
./Main.java:43: error: class, interface, or enum expected
end;
^
./Main.java:45: error: class, interface, or enum expected
procedure block(var s:string);
^
./Main.java:47: error: class, interface, or enum expected
var i,j,len:longint; flag:boolean;
^
./Main.java:47: error: class, interface, or enum expected
var i,j,len:longint; flag:boolean;
^
./Main.java:49: error: class, interface, or enum expected
begin
^
./Main.java:51: error: class, interface, or enum expected
len:=length(s); j:=0;
^
./Main.java:53: error: class, interface, or enum expected
if (s[1]='(')and(s[len]=')') then
^
./Main.java:65: error: class, interface, or enum expected
if (j=0)and(ilen) then exit;
^
./Main.java:67: error: class, interface, or enum expected
end;
^
./Main.java:69: error: class, interface, or enum expected
delete(s,1,1);
^
./Main.java:71: error: class, interface, or enum expected
delete(s,length(s),1);
^
./Main.java:73: error: class, interface, or enum expected
end;
^
./Main.java:75: error: class, interface, or enum expected
end;
^
./Main.java:77: error: class, interface, or enum expected
function cal(s:string):longint;
^
./Main.java:79: error: class, interface, or enum expected
var i,len,c,t,delta,min,cut,temp:longint;
^
./Main.java:81: error: class, interface, or enum expected
begin
^
./Main.java:85: error: class, interface, or enum expected
if s[1]'(' then s:='0'+s;
^
./Main.java:87: error: class, interface, or enum expected
len:=length(s);
^
./Main.java:89: error: class, interface, or enum expected
temp:=0;
^
./Main.java:91: error: class, interface, or enum expected
val(s,temp,c);
^
./Main.java:93: error: class, interface, or enum expected
if c0 then
^
./Main.java:97: error: class, interface, or enum expected
min:=maxint; cut:=0; delta:=0;
^
./Main.java:97: error: class, interface, or enum expected
min:=maxint; cut:=0; delta:=0;
^
./Main.java:99: error: class, interface, or enum expected
for i:=1 to len do
^
./Main.java:113: error: class, interface, or enum expected
if t='0' do
^
./Main.java:119: error: class, interface, or enum expected
inc(a);
^
./Main.java:121: error: class, interface, or enum expected
end;
^
./Main.java:123: error: class, interface, or enum expected
for i:=1 to n do
^
./Main.java:127: error: class, interface, or enum expected
val(t,find);
^
./Main.java:129: error: class, interface, or enum expected
end;
^
./Main.java:131: error: class, interface, or enum expected
function cal(a:char):longint;
^
./Main.java:133: error: class, interface, or enum expected
begin
^
./Main.java:139: error: class, interface, or enum expected
'-': exit(2);
^
./Main.java:141: error: class, interface, or enum expected
'*': exit(3);
^
./Main.java:143: error: class, interface, or enum expected
'/': exit(4);
^
./Main.java:145: error: class, interface, or enum expected
'(': exit(5);
^
./Main.java:147: error: class, interface, or enum expected
')': exit(6);
^
./Main.java:149: error: class, interface, or enum expected
'#': exit(7);
^
./Main.java:151: error: class, interface, or enum expected
end;
^
./Main.java:153: error: class, interface, or enum expected
end;
^
./Main.java:155: error: class, interface, or enum expected
begin
^
./Main.java:159: error: class, interface, or enum expected
for m:=1 to t do
^
./Main.java:165: error: class, interface, or enum expected
readln(n);
^
./Main.java:167: error: class, interface, or enum expected
for i:=1 to n do
^
./Main.java:173: error: class, interface, or enum expected
k:=pos('=',v[i].s);
^
./Main.java:175: error: class, interface, or enum expected
val(copy(v[i].s,k+1,length(v[i].s)-k),v[i].c);
^
./Main.java:177: error: class, interface, or enum expected
delete(v[i].s,k-1,length(v[i].s)-k+2);
^
./Main.java:179: error: class, interface, or enum expected
end;
^
./Main.java:181: error: class, interface, or enum expected
fillchar(num,sizeof(num),0);
^
./Main.java:183: error: class, interface, or enum expected
fillchar(opt,sizeof(opt),#0);
^
./Main.java:183: error: illegal character: '#'
fillchar(opt,sizeof(opt),#0);
^
./Main.java:185: error: class, interface, or enum expected
st:=st+'#';
^
./Main.java:187: error: class, interface, or enum expected
i:=1;
^
./Main.java:189: error: class, interface, or enum expected
while i='0' then
^
./Main.java:195: error: class, interface, or enum expected
num[p2]:=find(i);
^
./Main.java:197: error: class, interface, or enum expected
end else
^
./Main.java:209: error: class, interface, or enum expected
dec(p2); dec(p1);
^
./Main.java:209: error: class, interface, or enum expected
dec(p2); dec(p1);
^
./Main.java:211: error: class, interface, or enum expected
end;
^
./Main.java:213: error: unclosed character literal
'
^
./Main.java:213: error: reached end of file while parsing
'
^
76 errors