/ Vijos /

记录详情

Compile Error

foo.cc:2:9: error: too many decimal points in number
    2 | a:array[1..60]of real;
      |         ^~~~~
foo.cc:5:15: error: too many decimal points in number
    5 | v3,v2,v:array[1..3,1..3]of real;
      |               ^~~~
foo.cc:5:20: error: too many decimal points in number
    5 | v3,v2,v:array[1..3,1..3]of real;
      |                    ^~~~
foo.cc:1:1: error: 'var' does not name a type
    1 | var
      | ^~~
foo.cc:3:1: error: 'm' does not name a type
    3 | m,ii,n,i,j:longint;
      | ^
foo.cc:4:1: error: 's' does not name a type
    4 | s,q1,q2,q3,d:real;
      | ^
foo.cc:5:1: error: 'v3' does not name a type
    5 | v3,v2,v:array[1..3,1..3]of real;
      | ^~
foo.cc:6:1: error: 'procedure' does not name a type
    6 | procedure che;
      | ^~~~~~~~~
foo.cc:7:1: error: 'var' does not name a type
    7 | var
      | ^~~
foo.cc:9:1: error: 'begin' does not name a type
    9 | begin
      | ^~~~~
foo.cc:14:1: error: expected unqualified-id before 'for'
   14 | for k:=1 to 3 do
      | ^~~
foo.cc:16:1: error: 'v3' does not name a type
   16 | v3[i,j]:=s;
      | ^~
foo.cc:17:1: error: 'end' does not name a type
   17 | end;
      | ^~~
foo.cc:18:1: error: 'end' does not name a type
   18 | end;
      | ^~~
foo.cc:19:1: error: 'begin' does not name a type
   19 | begin
      | ^~~~~
foo.cc:21:5: error: expected constructor, destructor, or type conversion before '(' token
   21 | read(d,a[1],a[n]);
      |     ^
foo.cc:22:1: error: 'v' does not name a type
   22 | v[1,1]:=-2;v2[1,1]:=1;
      | ^
foo.cc:22:12: error: 'v2' does not name a type
   22 | v[1,1]:=-2;v2[1,1]:=1;
      |            ^~
foo.cc:23:1: error: 'v' does not name a type
   23 | v[1,2]:=1;v2[2,2]:=1;
      | ^
foo.cc:23:11: error: 'v2' does not name a type
   23 | v[1,2]:=1;v2[2,2]:=1;
      |           ^~
foo.cc:24:1: error: 'v' does not name a type
   24 | v[1,3]:=1;
      | ^
foo.cc:25:1: error: 'v' does not name a type
   25 | v[2,1]:=1;
      | ^
foo.cc:26:1: error: 'v' does not name a type
   26 | v[3,3]:=1;v2[3,3]:=1;
      | ^
foo.cc:26:11: error: 'v2' does not name a type
   26 | v[3,3]:=1;v2[3,3]:=1;
      |           ^~
foo.cc:27:1: error: expected unqualified-id before 'for'
   27 | for i:=3 to n do
      | ^~~
foo.cc:30:1: error: expected unqualified-id before 'if'
   30 | if i=m then
      | ^~
foo.cc:32:13: error: 'q2' does not name a type
   32 | q1:=v3[1,1];q2:=v3[1,2];q3:=v3[1,3];
      |             ^~
foo.cc:32:25: error: 'q3' does not name a type
   32 | q1:=v3[1,1];q2:=v3[1,2];q3:=v3[1,3];
      |                         ^~
foo.cc:33:1: error: 'end' does not name a type
   33 | end;
      | ^~~
foo.cc:34:1: error: expected unqualified-id before 'for'
   34 | for ii:=1 to 3 do
      | ^~~
foo.cc:37:1: error: 'end' does not name a type
   37 | end;
      | ^~~
foo.cc:38:1: error: 'a' does not name a type
   38 | a[2]:=(a[n]-v3[1,3]*2*d-v3[1,2]*a[1])/ v3[1,1];
      | ^
foo.cc:39:1: error: 'a' does not name a type
   39 | a[m]:=q1*a[2]+q2*a[1]+q3*2*d;
      | ^
foo.cc:40:8: error: expected constructor, destructor, or type conversion before '(' token
   40 | writeln(a[m]:8:3);
      |        ^
foo.cc:41:1: error: 'end' does not name a type
   41 | end.
      | ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1151 失落的成绩单
语言
C++
递交时间
2023-10-08 19:25:26
评测时间
2023-10-08 19:25:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes