/ Vijos /

记录详情

Compile Error

./Main.java:1: error: class, interface, enum, or record expected
var i,j,k1,k2,l1,l2,m,n,d,x,y,p,q,t,min,ans:longint;
^
./Main.java:3: error: class, interface, enum, or record expected
a,b:array[0..31,0..31]of longint;
^
./Main.java:5: error: class, interface, enum, or record expected
c:array[0..31,0..31]of boolean;
^
./Main.java:7: error: class, interface, enum, or record expected
procedure chuan(time,hen,zong:longint);
^
./Main.java:9: error: class, interface, enum, or record expected
var e,f,min:longint;
^
./Main.java:11: error: class, interface, enum, or record expected
begin
^
./Main.java:19: error: unclosed character literal
writeln('Error!');
        ^
./Main.java:19: error: unclosed character literal
writeln('Error!');
               ^
./Main.java:21: error: class, interface, enum, or record expected
write(hen,',',zong);
^
./Main.java:23: error: class, interface, enum, or record expected
halt;
^
./Main.java:25: error: class, interface, enum, or record expected
end
^
./Main.java:35: error: class, interface, enum, or record expected
write(hen,',',zong);
^
./Main.java:37: error: class, interface, enum, or record expected
halt;
^
./Main.java:39: error: class, interface, enum, or record expected
end;
^
./Main.java:41: error: class, interface, enum, or record expected
e:=hen;
^
./Main.java:43: error: class, interface, enum, or record expected
f:=zong;
^
./Main.java:45: error: class, interface, enum, or record expected
min:=maxlongint;
^
./Main.java:47: error: class, interface, enum, or record expected
if c[hen-1,zong] then begin min:=a[hen-1,zong];e:=hen-1;f:=zong;end;
^
./Main.java:47: error: class, interface, enum, or record expected
if c[hen-1,zong] then begin min:=a[hen-1,zong];e:=hen-1;f:=zong;end;
                                               ^
./Main.java:47: error: class, interface, enum, or record expected
if c[hen-1,zong] then begin min:=a[hen-1,zong];e:=hen-1;f:=zong;end;
                                                        ^
./Main.java:47: error: class, interface, enum, or record expected
if c[hen-1,zong] then begin min:=a[hen-1,zong];e:=hen-1;f:=zong;end;
                                                                ^
./Main.java:49: error: class, interface, enum, or record expected
if (c[hen,zong-1])and(min>a[hen,zong-1])then
^
./Main.java:55: error: class, interface, enum, or record expected
e:=hen;
^
./Main.java:57: error: class, interface, enum, or record expected
f:=zong-1;
^
./Main.java:59: error: class, interface, enum, or record expected
end;
^
./Main.java:61: error: class, interface, enum, or record expected
if (c[hen+1,zong])and(min>a[hen+1,zong])then
^
./Main.java:67: error: class, interface, enum, or record expected
e:=hen+1;
^
./Main.java:69: error: class, interface, enum, or record expected
f:=zong;
^
./Main.java:71: error: class, interface, enum, or record expected
end;
^
./Main.java:73: error: class, interface, enum, or record expected
if (c[hen,zong+1])and(min>a[hen,zong+1])then
^
./Main.java:79: error: class, interface, enum, or record expected
e:=hen;
^
./Main.java:81: error: class, interface, enum, or record expected
f:=zong+1;
^
./Main.java:83: error: class, interface, enum, or record expected
end;
^
./Main.java:85: error: class, interface, enum, or record expected
time:=time-min;
^
./Main.java:87: error: class, interface, enum, or record expected
if time>0 then begin ans:=ans+1;c[e,f]:=false;chuan(time,e,f);end
^
./Main.java:87: error: class, interface, enum, or record expected
if time>0 then begin ans:=ans+1;c[e,f]:=false;chuan(time,e,f);end
                                ^
./Main.java:87: error: class, interface, enum, or record expected
if time>0 then begin ans:=ans+1;c[e,f]:=false;chuan(time,e,f);end
                                              ^
./Main.java:87: error: class, interface, enum, or record expected
if time>0 then begin ans:=ans+1;c[e,f]:=false;chuan(time,e,f);end
                                                              ^
./Main.java:97: error: class, interface, enum, or record expected
write(e,',',f);
^
./Main.java:99: error: class, interface, enum, or record expected
halt;
^
./Main.java:101: error: class, interface, enum, or record expected
end
^
./Main.java:109: error: class, interface, enum, or record expected
write(e,',',f);
^
./Main.java:111: error: class, interface, enum, or record expected
halt;
^
./Main.java:113: error: class, interface, enum, or record expected
end;
^
./Main.java:115: error: class, interface, enum, or record expected
end;
^
./Main.java:117: error: class, interface, enum, or record expected
begin
^
./Main.java:121: error: class, interface, enum, or record expected
readln(k1,k2);
^
./Main.java:123: error: class, interface, enum, or record expected
for i:=1 to k1 do
^
./Main.java:133: error: class, interface, enum, or record expected
c:=true;
^
./Main.java:135: error: class, interface, enum, or record expected
if a=0 then
^
./Main.java:141: error: class, interface, enum, or record expected
y:=j;
^
./Main.java:143: error: class, interface, enum, or record expected
c:=false;
^
./Main.java:145: error: class, interface, enum, or record expected
end;
^
./Main.java:147: error: class, interface, enum, or record expected
end;
^
./Main.java:149: error: class, interface, enum, or record expected
readln;
^
./Main.java:151: error: class, interface, enum, or record expected
end;
^
./Main.java:153: error: class, interface, enum, or record expected
readln(l1,l2);
^
./Main.java:155: error: class, interface, enum, or record expected
for i:=1 to l1 do
^
./Main.java:165: error: class, interface, enum, or record expected
if b=0 then
^
./Main.java:171: error: class, interface, enum, or record expected
q:=j;
^
./Main.java:173: error: class, interface, enum, or record expected
end;
^
./Main.java:175: error: class, interface, enum, or record expected
end;
^
./Main.java:177: error: class, interface, enum, or record expected
readln;
^
./Main.java:179: error: class, interface, enum, or record expected
end;
^
./Main.java:181: error: class, interface, enum, or record expected
read(d);
^
./Main.java:183: error: class, interface, enum, or record expected
t:=0;
^
./Main.java:185: error: class, interface, enum, or record expected
min:=0;
^
./Main.java:187: error: class, interface, enum, or record expected
ans:=1;
^
./Main.java:189: error: class, interface, enum, or record expected
for i:=l1 downto p+1 do
^
./Main.java:195: error: class, interface, enum, or record expected
if d=0
^
./Main.java:205: error: class, interface, enum, or record expected
end
^
./Main.java:215: error: class, interface, enum, or record expected
end;
^
./Main.java:217: error: class, interface, enum, or record expected
chuan(t,x,y);
^
./Main.java:219: error: class, interface, enum, or record expected
end.
^
74 errors
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1503 笨笨的纸条传递
语言
Java
递交时间
2023-05-15 18:46:30
评测时间
2023-05-15 18:46:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes