/in/foo.cc:1:30: error: too many decimal points in number
var pre,res,vis,ok,len:Array[0..101]of longint;
^~~~~~
/in/foo.cc:2:15: error: too many decimal points in number
lin,ans:Array[0..101]of longint;
^~~~~~
/in/foo.cc:16:7: warning: multi-character character constant [-Wmultichar]
write('FD ');
^~~~~
/in/foo.cc:18:7: warning: character constant too long for its type
write(' is redundant using FDs:');
^~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:83:14: warning: character constant too long for its type
else writeln('No redundant FDs.');
^~~~~~~~~~~~~~~~~~~
/in/foo.cc:1:1: error: 'var' does not name a type
var pre,res,vis,ok,len:Array[0..101]of longint;
^~~
/in/foo.cc:2:1: error: 'lin' does not name a type
lin,ans:Array[0..101]of longint;
^~~
/in/foo.cc:3:1: error: 'i' does not name a type
i,j,k,m,n,t,l,r,best:longint;
^
/in/foo.cc:4:5: error: found ':' in nested-name-specifier, expected '::'
flag:Boolean;
^
/in/foo.cc:4:1: error: 'flag' does not name a type
flag:Boolean;
^~~~
/in/foo.cc:5:1: error: 's' does not name a type
s,st:String;
^
/in/foo.cc:6:1: error: 'function' does not name a type
function bush(s:String):longint;
^~~~~~~~
/in/foo.cc:7:1: error: 'var' does not name a type
var i,j:longint;
^~~
/in/foo.cc:8:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:10:1: error: expected unqualified-id before 'for'
for i:=1 to length(s) do
^~~
/in/foo.cc:12:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:13:1: error: 'procedure' does not name a type
procedure print(x,y:longint);
^~~~~~~~~
/in/foo.cc:14:1: error: 'var' does not name a type
var i,j:longint;
^~~
/in/foo.cc:15:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:17:6: error: expected constructor, destructor, or type conversion before '(' token
write(x);
^
/in/foo.cc:18:6: error: expected constructor, destructor, or type conversion before '(' token
write(' is redundant using FDs:');
^
/in/foo.cc:19:1: error: expected unqualified-id before 'for'
for i:=1 to y do write(' ',ans[i]);
^~~
/in/foo.cc:20:1: error: 'writeln' does not name a type
writeln;
^~~~~~~
/in/foo.cc:21:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:22:1: error: 'function' does not name a type
function dfs(dep,now,goa:longint):Boolean;
^~~~~~~~
/in/foo.cc:23:1: error: 'var' does not name a type
var i,j,k:longint;
^~~
/in/foo.cc:24:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:27:1: error: 'ans' does not name a type
ans:=lin;
^~~
/in/foo.cc:28:1: error: 'exit' does not name a type
exit;
^~~~
/in/foo.cc:29:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:30:1: error: expected unqualified-id before 'if'
if dep >= best then exit;
^~
/in/foo.cc:31:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:34:1: error: 'vis' does not name a type
vis[i]:=1;
^~~
/in/foo.cc:35:4: error: expected constructor, destructor, or type conversion before '(' token
dfs(dep+1,now or res[i],goa);
^
/in/foo.cc:36:1: error: 'vis' does not name a type
vis[i]:=0;
^~~
/in/foo.cc:37:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:38:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:39:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:41:1: error: expected unqualified-id before 'for'
for i:=1 to n do begin
^~~
/in/foo.cc:43:1: error: 'st' does not name a type
st:=copy(s,1,pos('-',s)-1);
^~
/in/foo.cc:44:1: error: expected unqualified-id before 'delete'
delete(s,1,pos('>',s));
^~~~~~
/in/foo.cc:45:1: error: 'pre' does not name a type
pre[i]:=bush(st);
^~~
/in/foo.cc:46:1: error: 'res' does not name a type
res[i]:=bush(s);
^~~
/in/foo.cc:47:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:48:1: error: expected unqualified-id before 'for'
for i:=1 to n do begin
^~~
/in/foo.cc:50:1: error: 'vis' does not name a type
vis[i]:=1;
^~~
/in/foo.cc:51:1: error: 'flag' does not name a type
flag:=true;
^~~~
/in/foo.cc:52:1: error: 't' does not name a type
t:=pre[i]; r:=res[i];
^
/in/foo.cc:52:12: error: 'r' does not name a type
t:=pre[i]; r:=res[i];
^
/in/foo.cc:53:1: error: expected unqualified-id before 'while'
while flag do begin
^~~~~
/in/foo.cc:55:1: error: 'flag' does not name a type
flag:=false;
^~~~
/in/foo.cc:56:1: error: 'j' does not name a type
j:=1;
^
/in/foo.cc:57:1: error: expected unqualified-id before 'while'
while j<=n do begin
^~~~~
/in/foo.cc:60:1: error: 'vis' does not name a type
vis[j]:=1;
^~~
/in/foo.cc:61:4: error: expected constructor, destructor, or type conversion before '(' token
inc(len[i]);
^
/in/foo.cc:62:1: error: 'flag' does not name a type
flag:=true;
^~~~
/in/foo.cc:63:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:64:4: error: expected constructor, destructor, or type conversion before '(' token
inc(j);
^
/in/foo.cc:65:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:66:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:67:1: error: expected unqualified-id before 'if'
if flag then begin
^~
/in/foo.cc:69:4: error: expected constructor, destructor, or type conversion before '(' token
inc(m);
^
/in/foo.cc:70:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:71:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:72:9: error: expected constructor, destructor, or type conversion before '(' token
fillchar(vis,sizeof(vis),0);
^
/in/foo.cc:73:1: error: expected unqualified-id before 'if'
if m<>0 then begin
^~
/in/foo.cc:77:1: error: 'vis' does not name a type
vis[i]:=1;
^~~
/in/foo.cc:78:4: error: expected constructor, destructor, or type conversion before '(' token
dfs(0,pre[i],res[i]);
^
/in/foo.cc:79:6: error: expected constructor, destructor, or type conversion before '(' token
print(i,best);
^
/in/foo.cc:80:1: error: 'vis' does not name a type
vis[i]:=0;
^~~
/in/foo.cc:81:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:82:1: error: 'end' does not name a type
end
^~~
/in/foo.cc:84:1: error: 'end' does not name a type
end.
^~~