/in/foo.cc:3:35: error: too many decimal points in number
atk,tim,dis,max,fac,res:array[0..100000]of longint;
^~~~~~~~~
/in/foo.cc:42:17: warning: character constant too long for its type
writeln('twbzuobile');
^~~~~~~~~~~~
/in/foo.cc:1:1: error: 'uses' does not name a type
uses math;
^~~~
/in/foo.cc:2:1: error: 'var' does not name a type; did you mean 'char'?
var i,j,n,total,a,b,c,d,mid,now:longint;
^~~
char
/in/foo.cc:3:5: error: 'atk' does not name a type; did you mean 'auto'?
atk,tim,dis,max,fac,res:array[0..100000]of longint;
^~~
auto
/in/foo.cc:4:5: error: 'imp' does not name a type
imp,failed:boolean;
^~~
/in/foo.cc:5:1: error: 'function' does not name a type; did you mean 'union'?
function solve(fac,tim,aim:longint;var left,right:longint):boolean;
^~~~~~~~
union
/in/foo.cc:5:36: error: 'var' does not name a type; did you mean 'char'?
function solve(fac,tim,aim:longint;var left,right:longint):boolean;
^~~
char
/in/foo.cc:6:1: error: 'var' does not name a type; did you mean 'char'?
var r1,r2,delta:real;
^~~
char
/in/foo.cc:7:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:9:3: error: 'delta' does not name a type; did you mean 'decltype'?
delta:=fac*fac+2*fac*tim+tim*tim-4*aim;
^~~~~
decltype
/in/foo.cc:10:3: error: expected unqualified-id before 'if'
if(delta<0)then
^~
/in/foo.cc:12:3: error: 'r1' does not name a type
r1:=(-fac+tim-sqrt(delta))/2;
^~
/in/foo.cc:13:3: error: 'r2' does not name a type
r2:=(-fac+tim+sqrt(delta))/2;
^~
/in/foo.cc:14:3: error: expected unqualified-id before 'if'
if(r2<0)then
^~
/in/foo.cc:20:3: error: expected unqualified-id before 'if'
if(r1<0)then
^~
/in/foo.cc:26:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
/in/foo.cc:27:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:29:3: error: 'tim' does not name a type
tim[0]:=0;
^~~
/in/foo.cc:30:3: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:32:6: error: expected constructor, destructor, or type conversion before '(' token
inc(n);
^
/in/foo.cc:33:3: error: 'tim' does not name a type
tim[n]:=total;
^~~
/in/foo.cc:34:3: error: 'atk' does not name a type; did you mean 'auto'?
atk[n]:=0;
^~~
auto
/in/foo.cc:35:3: error: 'now' does not name a type
now:=0;
^~~
/in/foo.cc:36:3: error: 'imp' does not name a type
imp:=false;
^~~
/in/foo.cc:37:3: error: 'res' does not name a type
res[0]:=0;
^~~
/in/foo.cc:38:3: error: 'fac' does not name a type
fac[0]:=1;
^~~
/in/foo.cc:39:3: error: expected unqualified-id before 'while'
while(now<=n)do begin
^~~~~
/in/foo.cc:43:9: error: 'failed' does not name a type
failed:=true;
^~~~~~
/in/foo.cc:44:9: error: expected unqualified-id before 'break'
break;
^~~~~
/in/foo.cc:45:7: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
/in/foo.cc:46:10: error: expected constructor, destructor, or type conversion before '(' token
inc(now);
^
/in/foo.cc:47:7: error: expected unqualified-id before 'continue'
continue;
^~~~~~~~
/in/foo.cc:48:5: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
/in/foo.cc:49:5: error: expected unqualified-id before 'if'
if(imp)then begin
^~
/in/foo.cc:51:7: error: expected unqualified-id before 'if'
if(dis[now]>max[now])then begin
^~
/in/foo.cc:53:9: error: 'imp' does not name a type
imp:=true;
^~~
/in/foo.cc:54:9: error: expected unqualified-id before 'continue'
continue
^~~~~~~~
/in/foo.cc:56:5: error: 'end' does not name a type; did you mean 'enum'?
end
^~~
enum
/in/foo.cc:60:9: error: 'imp' does not name a type
imp:=true;
^~~
/in/foo.cc:61:9: error: expected unqualified-id before 'continue'
continue;
^~~~~~~~
/in/foo.cc:62:7: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
/in/foo.cc:63:7: error: 'dis' does not name a type
dis[now]:=(a+b)div 2;
^~~
/in/foo.cc:64:7: error: 'max' does not name a type
max[now]:=b;
^~~
/in/foo.cc:65:5: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
/in/foo.cc:66:5: error: 'fac' does not name a type
fac[now]:=fac[now-1]+dis[now];
^~~
/in/foo.cc:67:5: error: 'res' does not name a type
res[now]:=res[now-1]+fac[now]*(tim[now]-tim[now-1]-dis[now])-atk[now];
^~~
/in/foo.cc:68:5: error: expected unqualified-id before 'if'
if(res[now]<0)then begin
^~
/in/foo.cc:70:7: error: 'imp' does not name a type
imp:=true;
^~~
/in/foo.cc:71:7: error: expected unqualified-id before 'continue'
continue;
^~~~~~~~
/in/foo.cc:72:5: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
/in/foo.cc:73:8: error: expected constructor, destructor, or type conversion before '(' token
inc(now);
^
/in/foo.cc:74:5: error: 'imp' does not name a type
imp:=false;
^~~
/in/foo.cc:75:3: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
/in/foo.cc:76:3: error: expected unqualified-id before 'if'
if(not failed)then
^~
/in/foo.cc:78:1: error: 'end' does not name a type; did you mean 'enum'?
end.
^~~
enum