/ Vijos /

记录详情

Compile Error

foo.cc:2:10: error: too many decimal points in number
 a:array [0..65,1..3] of extended;
          ^~~~~
foo.cc:2:16: error: too many decimal points in number
 a:array [0..65,1..3] of extended;
                ^~~~
foo.cc:1:1: error: 'var' does not name a type; did you mean 'char'?
 var
 ^~~
 char
foo.cc:3:1: error: 'i' does not name a type
 i,n,m:longint;
 ^
foo.cc:4:1: error: 'x' does not name a type
 x,y,d,z:extended;
 ^
foo.cc:5:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:7:5: error: expected constructor, destructor, or type conversion before '(' token
 read(d,x,y);
     ^
foo.cc:8:1: error: 'a' does not name a type
 a[1,1]:=1; a[2,2]:=1;
 ^
foo.cc:8:12: error: 'a' does not name a type
 a[1,1]:=1; a[2,2]:=1;
            ^
foo.cc:9:1: error: expected unqualified-id before 'for'
 for i:=3 to n do
 ^~~
foo.cc:12:1: error: 'a' does not name a type
 a[i,2]:=-2*a[i-1,2]+a[i-2,2];
 ^
foo.cc:13:1: error: 'a' does not name a type
 a[i,3]:=-2*(a[i-1,3]-1)+a[i-2,3];
 ^
foo.cc:14:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:15:1: error: 'z' does not name a type
 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
 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; did you mean 'enum'?
 end.
 ^~~
 enum
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

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