foo.cc:1:1: error: 'j' does not name a type
1 | j:=0;
| ^
foo.cc:3:1: error: expected unqualified-id before 'for'
3 | for i:=1 to m do
| ^~~
foo.cc:9:1: error: expected unqualified-id before 'while'
9 | while kb[j] then b[j]:=a;
| ^~~~~
foo.cc:11:1: error: 'k' does not name a type
11 | k:=b[j]+1;
| ^
foo.cc:13:1: error: expected unqualified-id before 'while'
13 | while kf then f:=f;
| ^~~~~
foo.cc:15:1: error: 'k' does not name a type
15 | k:=(k+1) mod 6;
| ^
foo.cc:17:1: error: expected unqualified-id before 'if'
17 | if f>f then f:=f;
| ^~
foo.cc:19:4: error: expected constructor, destructor, or type conversion before '(' token
19 | inc(f);
| ^
foo.cc:21:1: error: expected unqualified-id before 'for'
21 | for k:=2 to 6 do f[i,k mod 6]:=f[i-1,((b-b[i]+k) mod 6+6) mod 6];
| ^~~
foo.cc:23:1: error: 'end' does not name a type
23 | end;
| ^~~
foo.cc:25:1: error: 'ans' does not name a type
25 | ans:=f[j,1]-1;
| ^~~
foo.cc:27:1: error: expected unqualified-id before 'if'
27 | if ans
| ^~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务