/ Vijos /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1246 文科生的悲哀(二)
语言
C++
递交时间
2021-12-13 19:57:03
评测时间
2021-12-13 19:57:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes