foo.cc:1:30: error: too many decimal points in number
var pre,res,vis,ok,len:Array[0..101]of longint;
^~~~~~
foo.cc:2:15: error: too many decimal points in number
lin,ans:Array[0..101]of longint;
^~~~~~
foo.cc:18:7: warning: multi-character character constant [-Wmultichar]
write('FD ');
^~~~~
foo.cc:20:7: warning: character constant too long for its type
write(' is redundant using FDs:');
^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:90:14: warning: character constant too long for its type
else writeln('No redundant FDs.');
^~~~~~~~~~~~~~~~~~~
foo.cc:1:1: error: 'var' does not name a type; did you mean 'char'?
var pre,res,vis,ok,len:Array[0..101]of longint;
^~~
char
foo.cc:2:1: error: 'lin' does not name a type
lin,ans:Array[0..101]of longint;
^~~
foo.cc:3:1: error: 'i' does not name a type
i,j,k,m,n,t,l,r,best:longint;
^
foo.cc:4:5: error: found ':' in nested-name-specifier, expected '::'
flag:Boolean;
^
foo.cc:4:1: error: 'flag' does not name a type; did you mean 'float'?
flag:Boolean;
^~~~
float
foo.cc:5:1: error: 's' does not name a type
s,st:String;
^
foo.cc:7:1: error: 'function' does not name a type; did you mean 'union'?
function bush(s:String):longint;
^~~~~~~~
union
foo.cc:8:1: error: 'var' does not name a type; did you mean 'char'?
var i,j:longint;
^~~
char
foo.cc:9:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:11:1: error: expected unqualified-id before 'for'
for i:=1 to length(s) do
^~~
foo.cc:13:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:15:1: error: 'procedure' does not name a type
procedure print(x,y:longint);
^~~~~~~~~
foo.cc:16:1: error: 'var' does not name a type; did you mean 'char'?
var i,j:longint;
^~~
char
foo.cc:17:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:19:6: error: expected constructor, destructor, or type conversion before '(' token
write(x);
^
foo.cc:20:6: error: expected constructor, destructor, or type conversion before '(' token
write(' is redundant using FDs:');
^
foo.cc:21:1: error: expected unqualified-id before 'for'
for i:=1 to y do write(' ',ans[i]);
^~~
foo.cc:22:1: error: 'writeln' does not name a type
writeln;
^~~~~~~
foo.cc:23:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:25:1: error: 'function' does not name a type; did you mean 'union'?
function dfs(dep,now,goa:longint):Boolean;
^~~~~~~~
union
foo.cc:26:1: error: 'var' does not name a type; did you mean 'char'?
var i,j,k:longint;
^~~
char
foo.cc:27:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:30:1: error: 'ans' does not name a type
ans:=lin;
^~~
foo.cc:31:1: error: 'exit' does not name a type
exit;
^~~~
foo.cc:32:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:33:1: error: expected unqualified-id before 'if'
if dep >= best then exit;
^~
foo.cc:34:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
foo.cc:37:1: error: 'vis' does not name a type; did you mean 'void'?
vis[i]:=1;
^~~
void
foo.cc:38:4: error: expected constructor, destructor, or type conversion before '(' token
dfs(dep+1,now or res[i],goa);
^
foo.cc:39:1: error: 'vis' does not name a type; did you mean 'void'?
vis[i]:=0;
^~~
void
foo.cc:40:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:41:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:43:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:46:1: error: expected unqualified-id before 'for'
for i:=1 to n do begin
^~~
foo.cc:48:1: error: 'st' does not name a type
st:=copy(s,1,pos('-',s)-1);
^~
foo.cc:49:1: error: expected unqualified-id before 'delete'
delete(s,1,pos('>',s));
^~~~~~
foo.cc:50:1: error: 'pre' does not name a type
pre[i]:=bush(st);
^~~
foo.cc:51:1: error: 'res' does not name a type
res[i]:=bush(s);
^~~
foo.cc:52:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:54:1: error: expected unqualified-id before 'for'
for i:=1 to n do begin
^~~
foo.cc:56:1: error: 'vis' does not name a type; did you mean 'void'?
vis[i]:=1;
^~~
void
foo.cc:57:1: error: 'flag' does not name a type; did you mean 'float'?
flag:=true;
^~~~
float
foo.cc:58:1: error: 't' does not name a type
t:=pre[i]; r:=res[i];
^
foo.cc:58:12: error: 'r' does not name a type
t:=pre[i]; r:=res[i];
^
foo.cc:59:1: error: expected unqualified-id before 'while'
while flag do begin
^~~~~
foo.cc:61:1: error: 'flag' does not name a type; did you mean 'float'?
flag:=false;
^~~~
float
foo.cc:62:1: error: 'j' does not name a type
j:=1;
^
foo.cc:63:1: error: expected unqualified-id before 'while'
while j<=n do begin
^~~~~
foo.cc:66:1: error: 'vis' does not name a type; did you mean 'void'?
vis[j]:=1;
^~~
void
foo.cc:67:4: error: expected constructor, destructor, or type conversion before '(' token
inc(len[i]);
^
foo.cc:68:1: error: 'flag' does not name a type; did you mean 'float'?
flag:=true;
^~~~
float
foo.cc:69:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:70:4: error: expected constructor, destructor, or type conversion before '(' token
inc(j);
^
foo.cc:71:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:72:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:73:1: error: expected unqualified-id before 'if'
if flag then begin
^~
foo.cc:75:4: error: expected constructor, destructor, or type conversion before '(' token
inc(m);
^
foo.cc:76:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:77:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:79:9: error: expected constructor, destructor, or type conversion before '(' token
fillchar(vis,sizeof(vis),0);
^
foo.cc:80:1: error: expected unqualified-id before 'if'
if m<>0 then begin
^~
foo.cc:84:1: error: 'vis' does not name a type; did you mean 'void'?
vis[i]:=1;
^~~
void
foo.cc:85:4: error: expected constructor, destructor, or type conversion before '(' token
dfs(0,pre[i],res[i]);
^
foo.cc:86:6: error: expected constructor, destructor, or type conversion before '(' token
print(i,best);
^
foo.cc:87:1: error: 'vis' does not name a type; did you mean 'void'?
vis[i]:=0;
^~~
void
foo.cc:88:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:89:1: error: 'end' does not name a type; did you mean 'enum'?
end
^~~
enum
foo.cc:91:1: error: 'end' does not name a type; did you mean 'enum'?
end
^~~
enum
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。