foo.cc:1:1: error: 'procedure' does not name a type
1 | procedure dfs ( x : longint ) ;
| ^~~~~~~~~
foo.cc:3:1: error: 'begin' does not name a type
3 | begin
| ^~~~~
foo.cc:7:1: error: 'l' does not name a type
7 | l[x] = cnt ;
| ^
foo.cc:9:1: error: expected unqualified-id before 'for'
9 | for i = each son of x do dfs ( i )
| ^~~
foo.cc:13:1: error: 'r' does not name a type
13 | r[x] = cnt;
| ^
foo.cc:15:1: error: 'end' does not name a type
15 | end ;
| ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务