/ Vijos /

记录详情

Compile Error

foo.cc:2:27: error: too many decimal points in number
    2 | coin,gold,walktimes:array[0..1001,0..1001] of longint;
      |                           ^~~~~~~
foo.cc:2:35: error: too many decimal points in number
    2 | coin,gold,walktimes:array[0..1001,0..1001] of longint;
      |                                   ^~~~~~~
foo.cc:3:14: error: too many decimal points in number
    3 | f,cost:array[0..1001] of longint;
      |              ^~~~~~~
foo.cc:1:1: error: 'var' does not name a type
    1 | var n,m,p,i,j,temp:longint;
      | ^~~
foo.cc:2:1: error: 'coin' does not name a type
    2 | coin,gold,walktimes:array[0..1001,0..1001] of longint;
      | ^~~~
foo.cc:3:1: error: 'f' does not name a type
    3 | f,cost:array[0..1001] of longint;
      | ^
foo.cc:4:1: error: 'function' does not name a type; did you mean 'union'?
    4 | function return(x:longint):longint;
      | ^~~~~~~~
      | union
foo.cc:5:1: error: 'begin' does not name a type
    5 | begin
      | ^~~~~
foo.cc:8:1: error: expected unqualified-id before 'return'
    8 | return:=x;
      | ^~~~~~
foo.cc:9:1: error: 'end' does not name a type
    9 | end;
      | ^~~
foo.cc:10:1: error: 'begin' does not name a type
   10 | begin
      | ^~~~~
foo.cc:12:1: error: expected unqualified-id before 'for'
   12 | for i:=1 to n do
      | ^~~
foo.cc:14:1: error: expected unqualified-id before 'for'
   14 | for i:=1 to n do read(cost[i]);
      | ^~~
foo.cc:15:1: error: expected unqualified-id before 'for'
   15 | for i:=1 to n do walktimes[0,i]:=p;
      | ^~~
foo.cc:16:1: error: expected unqualified-id before 'for'
   16 | for i:=1 to m do
      | ^~~
foo.cc:19:1: error: expected unqualified-id before 'for'
   19 | for j:=1 to n do
      | ^~~
foo.cc:26:1: error: 'coin' does not name a type
   26 | coin[i,j]:=coin[i-1,return(j)]+gold[i,j];
      | ^~~~
foo.cc:27:1: error: 'end' does not name a type
   27 | end else
      | ^~~
foo.cc:30:1: error: 'coin' does not name a type
   30 | coin[i,j]:=f[i-1]-cost[j]+gold[i,j];
      | ^~~~
foo.cc:31:1: error: 'end' does not name a type
   31 | end;
      | ^~~
foo.cc:32:1: error: 'end' does not name a type
   32 | end
      | ^~~
foo.cc:36:1: error: 'walktimes' does not name a type
   36 | walktimes[i,j]:=1;
      | ^~~~~~~~~
foo.cc:37:1: error: 'end' does not name a type
   37 | end;
      | ^~~
foo.cc:38:1: error: expected unqualified-id before 'if'
   38 | if temp<coin[i,j] then temp:=coin[i,j];
      | ^~
foo.cc:39:1: error: 'end' does not name a type
   39 | end;
      | ^~~
foo.cc:40:1: error: 'f' does not name a type
   40 | f[i]:=temp;
      | ^
foo.cc:41:1: error: 'end' does not name a type
   41 | end;
      | ^~~
foo.cc:42:8: error: expected constructor, destructor, or type conversion before '(' token
   42 | writeln(f[m]);
      |        ^
foo.cc:43:1: error: 'end' does not name a type
   43 | end.
      | ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1815 道路游戏
语言
C++
递交时间
2021-12-18 16:34:27
评测时间
2021-12-18 16:34:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes