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