/ Vijos /

记录详情

Compile Error

foo.cc:2:10: error: too many decimal points in number
    2 | a:array [0..65,1..3] of extended;
      |          ^~~~~
foo.cc:2:16: error: too many decimal points in number
    2 | a:array [0..65,1..3] of extended;
      |                ^~~~
foo.cc:1:1: error: 'var' does not name a type
    1 | var
      | ^~~
foo.cc:3:1: error: 'i' does not name a type
    3 | i,n,m:longint;
      | ^
foo.cc:4:1: error: 'x' does not name a type
    4 | x,y,d,z:extended;
      | ^
foo.cc:5:1: error: 'begin' does not name a type
    5 | begin
      | ^~~~~
foo.cc:7:5: error: expected constructor, destructor, or type conversion before '(' token
    7 | read(d,x,y);
      |     ^
foo.cc:8:1: error: 'a' does not name a type
    8 | a[1,1]:=1; a[2,2]:=1;
      | ^
foo.cc:8:12: error: 'a' does not name a type
    8 | a[1,1]:=1; a[2,2]:=1;
      |            ^
foo.cc:9:1: error: expected unqualified-id before 'for'
    9 | for i:=3 to n do
      | ^~~
foo.cc:12:1: error: 'a' does not name a type
   12 | a[i,2]:=-2*a[i-1,2]+a[i-2,2];
      | ^
foo.cc:13:1: error: 'a' does not name a type
   13 | a[i,3]:=-2*(a[i-1,3]-1)+a[i-2,3];
      | ^
foo.cc:14:1: error: 'end' does not name a type
   14 | end;
      | ^~~
foo.cc:15:1: error: 'z' does not name a type
   15 | z:=(y-a[n,1]*x-a[n,3]*d)/a[n,2];
      | ^
foo.cc:16:6: error: expected constructor, destructor, or type conversion before '(' token
   16 | write((a[m,1]*x+a[m,2]*z+a[m,3]*d):0:3);
      |      ^
foo.cc:17:1: error: 'end' does not name a type
   17 | end.
      | ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1151 失落的成绩单
语言
C++
递交时间
2021-12-12 12:16:37
评测时间
2021-12-12 12:16:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes