/ Vijos /

记录详情

Compile Error

/in/foo.cc:7:11: error: too many decimal points in number
 a,b:array[1..50,1..50,1..50] of int64;
           ^~~~~
/in/foo.cc:7:17: error: too many decimal points in number
 a,b:array[1..50,1..50,1..50] of int64;
                 ^~~~~
/in/foo.cc:7:23: error: too many decimal points in number
 a,b:array[1..50,1..50,1..50] of int64;
                       ^~~~~
/in/foo.cc:1:1: error: 'program' does not name a type
 program p1502;
 ^~~~~~~
/in/foo.cc:3:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:7:1: error: 'a' does not name a type
 a,b:array[1..50,1..50,1..50] of int64;
 ^
/in/foo.cc:9:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:11:13: error: 'a' does not name a type
 read(o,n,m);a[1,1,m]:=1;
             ^
/in/foo.cc:13:1: error: expected unqualified-id before 'for'
 for i:=1 to o do
 ^~~
/in/foo.cc:19:1: error: 'b' does not name a type
 b[1,1,1]:=a[1,1,1];b[1,n,n]:=a[1,n,n];
 ^
/in/foo.cc:19:20: error: 'b' does not name a type
 b[1,1,1]:=a[1,1,1];b[1,n,n]:=a[1,n,n];
                    ^
/in/foo.cc:21:1: error: 'b' does not name a type
 b[1,n,1]:=a[1,n,1];b[n,1,1]:=a[n,1,1];
 ^
/in/foo.cc:21:20: error: 'b' does not name a type
 b[1,n,1]:=a[1,n,1];b[n,1,1]:=a[n,1,1];
                    ^
/in/foo.cc:23:1: error: 'b' does not name a type
 b[n,n,1]:=a[n,n,1];b[n,1,n]:=a[n,1,n];
 ^
/in/foo.cc:23:20: error: 'b' does not name a type
 b[n,n,1]:=a[n,n,1];b[n,1,n]:=a[n,1,n];
                    ^
/in/foo.cc:25:1: error: 'b' does not name a type
 b[1,1,n]:=a[1,1,n];b[n,n,n]:=a[n,n,n];
 ^
/in/foo.cc:25:20: error: 'b' does not name a type
 b[1,1,n]:=a[1,1,n];b[n,n,n]:=a[n,n,n];
                    ^
/in/foo.cc:27:1: error: expected unqualified-id before 'for'
 for j:=2 to n-1 do
 ^~~
/in/foo.cc:31:20: error: 'b' does not name a type
 b[1,j,1]:=a[1,j,1];b[1,1,j]:=a[1,1,j];
                    ^
/in/foo.cc:33:1: error: 'b' does not name a type
 b[1,n,j]:=a[1,n,j];b[n,1,j]:=a[n,1,j];
 ^
/in/foo.cc:33:20: error: 'b' does not name a type
 b[1,n,j]:=a[1,n,j];b[n,1,j]:=a[n,1,j];
                    ^
/in/foo.cc:35:1: error: 'b' does not name a type
 b[1,j,n]:=a[1,j,n];b[n,n,j]:=a[n,n,j];
 ^
/in/foo.cc:35:20: error: 'b' does not name a type
 b[1,j,n]:=a[1,j,n];b[n,n,j]:=a[n,n,j];
                    ^
/in/foo.cc:37:1: error: 'b' does not name a type
 b[j,1,1]:=a[j,1,1];b[j,n,n]:=a[j,n,n];
 ^
/in/foo.cc:37:20: error: 'b' does not name a type
 b[j,1,1]:=a[j,1,1];b[j,n,n]:=a[j,n,n];
                    ^
/in/foo.cc:39:1: error: 'b' does not name a type
 b[j,n,1]:=a[j,n,1];b[j,1,n]:=a[j,1,n];
 ^
/in/foo.cc:39:20: error: 'b' does not name a type
 b[j,n,1]:=a[j,n,1];b[j,1,n]:=a[j,1,n];
                    ^
/in/foo.cc:41:1: error: 'b' does not name a type
 b[n,j,1]:=a[n,j,1];b[n,j,n]:=a[n,j,n];
 ^
/in/foo.cc:41:20: error: 'b' does not name a type
 b[n,j,1]:=a[n,j,1];b[n,j,n]:=a[n,j,n];
                    ^
/in/foo.cc:43:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:45:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(a,sizeof(a),0);
         ^
/in/foo.cc:47:1: error: 'a' does not name a type
 a[1,1,1]:=b[1,1,2]+b[1,2,1]+b[2,1,1];
 ^
/in/foo.cc:49:1: error: 'a' does not name a type
 a[1,1,n]:=b[1,1,n-1]+b[1,2,n]+b[2,1,n];
 ^
/in/foo.cc:51:1: error: 'a' does not name a type
 a[1,n,1]:=b[1,n-1,1]+b[1,n,2]+b[2,n,1];
 ^
/in/foo.cc:53:1: error: 'a' does not name a type
 a[1,n,n]:=b[1,n,n-1]+b[1,n-1,n]+b[2,n,n];
 ^
/in/foo.cc:55:1: error: 'a' does not name a type
 a[n,1,1]:=b[n-1,1,1]+b[n,1,2]+b[n,2,1];
 ^
/in/foo.cc:57:1: error: 'a' does not name a type
 a[n,n,1]:=b[n,n-1,1]+b[n-1,n,1]+b[n,n,2];
 ^
/in/foo.cc:59:1: error: 'a' does not name a type
 a[n,n,n]:=b[n,n,n-1]+b[n,n-1,n]+b[n-1,n,n];
 ^
/in/foo.cc:61:1: error: 'a' does not name a type
 a[n,1,n]:=b[n,1,n-1]+b[n-1,1,n]+b[n,2,n];
 ^
/in/foo.cc:63:1: error: expected unqualified-id before 'for'
 for j:=2 to n-1 do
 ^~~
/in/foo.cc:69:1: error: 'a' does not name a type
 a[1,1,j]:=b[1,1,j-1]+b[1,1,j+1];
 ^
/in/foo.cc:71:1: error: 'a' does not name a type
 a[1,j,n]:=b[1,j-1,n]+b[1,j+1,n];
 ^
/in/foo.cc:73:1: error: 'a' does not name a type
 a[n,j,1]:=b[n,j-1,1]+b[n,j+1,1];
 ^
/in/foo.cc:75:1: error: 'a' does not name a type
 a[n,j,n]:=b[n,j-1,n]+b[n,j+1,n];
 ^
/in/foo.cc:77:1: error: 'a' does not name a type
 a[1,n,j]:=b[1,n,j-1]+b[1,n,j+1];
 ^
/in/foo.cc:79:1: error: 'a' does not name a type
 a[n,1,j]:=b[n,1,j-1]+b[n,1,j+1];
 ^
/in/foo.cc:81:1: error: 'a' does not name a type
 a[n,n,j]:=b[n,n,j-1]+b[n,n,j+1];
 ^
/in/foo.cc:83:1: error: 'a' does not name a type
 a[j,1,1]:=b[j-1,1,1]+b[j+1,1,1];
 ^
/in/foo.cc:85:1: error: 'a' does not name a type
 a[j,n,1]:=b[j-1,n,1]+b[j+1,n,1];
 ^
/in/foo.cc:87:1: error: 'a' does not name a type
 a[j,1,n]:=b[j-1,1,n]+b[j+1,1,n];
 ^
/in/foo.cc:89:1: error: 'a' does not name a type
 a[j,n,n]:=b[j-1,n,n]+b[j+1,n,n];
 ^
/in/foo.cc:91:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:93:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:95:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(a[1,1,m]);
        ^
/in/foo.cc:97:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
自测
题目
P1502 笨笨的果子分裂
语言
C++
递交时间
2020-02-02 19:21:20
评测时间
2020-02-02 19:21:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes