/ Vijos /

记录详情

Compile Error

./Main.java:1: error: class, interface, or enum expected
type nodd=record
^
./Main.java:3: error: class, interface, or enum expected
    end;
    ^
./Main.java:5: error: class, interface, or enum expected
var dx:array[1..4]of longint=(0,0,2,-2);
^
./Main.java:6: error: class, interface, or enum expected
   dy:array[1..4]of longint=(2,-2,0,0);
   ^
./Main.java:7: error: class, interface, or enum expected
   a:array[1..210,1..210]of char;
   ^
./Main.java:8: error: class, interface, or enum expected
   d:array[1..210,1..210]of longint;
   ^
./Main.java:9: error: class, interface, or enum expected
   q:array[1..10000]of nodd;
   ^
./Main.java:10: error: class, interface, or enum expected
   n,m,i,j,max,head,tail:longint;
   ^
./Main.java:12: error: class, interface, or enum expected
procedure init;
^
./Main.java:13: error: class, interface, or enum expected
begin
^
./Main.java:15: error: class, interface, or enum expected
    n:=n*2+1; m:=m*2+1;
    ^
./Main.java:15: error: class, interface, or enum expected
    n:=n*2+1; m:=m*2+1;
              ^
./Main.java:16: error: class, interface, or enum expected
    for i:=1 to n do
    ^
./Main.java:19: error: class, interface, or enum expected
       readln;
       ^
./Main.java:20: error: class, interface, or enum expected
    end;
    ^
./Main.java:21: error: class, interface, or enum expected
   fillchar(d,sizeof(d),0);
   ^
./Main.java:22: error: class, interface, or enum expected
end;
^
./Main.java:24: error: class, interface, or enum expected
procedure bfs(x,y:longint);
^
./Main.java:25: error: class, interface, or enum expected
var i,xx,yy:longint;
^
./Main.java:26: error: class, interface, or enum expected
begin
^
./Main.java:27: error: class, interface, or enum expected
    head:=0; tail:=1; q[1].x:=x; q[1].y:=y; q[1].z:=0;
             ^
./Main.java:27: error: class, interface, or enum expected
    head:=0; tail:=1; q[1].x:=x; q[1].y:=y; q[1].z:=0;
                      ^
./Main.java:27: error: class, interface, or enum expected
    head:=0; tail:=1; q[1].x:=x; q[1].y:=y; q[1].z:=0;
                                 ^
./Main.java:27: error: class, interface, or enum expected
    head:=0; tail:=1; q[1].x:=x; q[1].y:=y; q[1].z:=0;
                                            ^
./Main.java:28: error: class, interface, or enum expected
    while head<>tail do
    ^
./Main.java:30: error: class, interface, or enum expected
       inc(head); if head>10000 then head:=1;
                  ^
./Main.java:31: error: class, interface, or enum expected
       for i:=1 to 4 do
       ^
./Main.java:33: error: class, interface, or enum expected
           xx:=q[head].x+dx[i]; yy:=q[head].y+dy[i];
                                ^
./Main.java:34: error: class, interface, or enum expected
           if (xx>0)and(xx<=n)and(yy>0)and(yy<=m) then
           ^
./Main.java:38: error: class, interface, or enum expected
                   inc(tail); if tail>10000 then tail:=1;
                              ^
./Main.java:39: error: class, interface, or enum expected
                   q[tail].x:=xx; q[tail].y:=yy; q[tail].z:=q[head].z+1;
                   ^
./Main.java:39: error: class, interface, or enum expected
                   q[tail].x:=xx; q[tail].y:=yy; q[tail].z:=q[head].z+1;
                                  ^
./Main.java:39: error: class, interface, or enum expected
                   q[tail].x:=xx; q[tail].y:=yy; q[tail].z:=q[head].z+1;
                                                 ^
./Main.java:40: error: class, interface, or enum expected
                   d[xx,yy]:=q[tail].z;
                   ^
./Main.java:41: error: class, interface, or enum expected
               end;
               ^
./Main.java:42: error: class, interface, or enum expected
       end;
       ^
./Main.java:43: error: class, interface, or enum expected
    end;
    ^
./Main.java:44: error: class, interface, or enum expected
end;
^
./Main.java:46: error: class, interface, or enum expected
procedure work;
^
./Main.java:47: error: class, interface, or enum expected
begin
^
./Main.java:49: error: class, interface, or enum expected
    for i:=1 to n do if a[i,1]=' ' then bfs(i,0);
    ^
./Main.java:50: error: class, interface, or enum expected
    for i:=1 to m do if a[n,i]=' ' then bfs(n+1,i);
    ^
./Main.java:51: error: class, interface, or enum expected
    for i:=1 to m do if a[1,i]=' ' then bfs(0,i);
    ^
./Main.java:52: error: class, interface, or enum expected
   max:=0;
   ^
./Main.java:53: error: class, interface, or enum expected
    for i:=1 to n do
    ^
./Main.java:55: error: class, interface, or enum expected
   writeln(max);
   ^
./Main.java:56: error: class, interface, or enum expected
end;
^
./Main.java:58: error: class, interface, or enum expected
begin
^
./Main.java:60: error: class, interface, or enum expected
    work;
    ^
./Main.java:61: error: class, interface, or enum expected
end.
^
50 errors

自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)

信息

递交者
类型
递交
题目
P1434 简单的迷宫
语言
Java
递交时间
2020-05-23 17:24:17
评测时间
2020-05-23 17:24:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes