/ Vijos /

记录详情

Compile Error

./Main.java:1: error: class, interface, enum, or record expected
program vijos_1578;
^
./Main.java:3: error: class, interface, enum, or record expected
var
^
./Main.java:7: error: class, interface, enum, or record expected
map : array[0..20,0..20]of integer;
^
./Main.java:9: error: class, interface, enum, or record expected
check : array[0..4096]of boolean;
^
./Main.java:11: error: class, interface, enum, or record expected
vis : array[0..1,0..4096]of boolean;
^
./Main.java:13: error: class, interface, enum, or record expected
a : array[0..100000]of record
^
./Main.java:17: error: class, interface, enum, or record expected
end;
^
./Main.java:19: error: class, interface, enum, or record expected
num,b : array[0..4096]of integer;
^
./Main.java:23: error: class, interface, enum, or record expected
procedure init;
^
./Main.java:25: error: class, interface, enum, or record expected
var
^
./Main.java:29: error: class, interface, enum, or record expected
begin
^
./Main.java:33: error: class, interface, enum, or record expected
readln(n);
^
./Main.java:35: error: class, interface, enum, or record expected
readln(k);
^
./Main.java:37: error: class, interface, enum, or record expected
fillchar(map,sizeof(map),0);
^
./Main.java:39: error: class, interface, enum, or record expected
for i:=1 to k do
^
./Main.java:45: error: class, interface, enum, or record expected
map[x,y]:=1;
^
./Main.java:47: error: class, interface, enum, or record expected
map[y,x]:=1;
^
./Main.java:49: error: class, interface, enum, or record expected
end;
^
./Main.java:51: error: class, interface, enum, or record expected
end;
^
./Main.java:55: error: class, interface, enum, or record expected
procedure pre;
^
./Main.java:57: error: class, interface, enum, or record expected
var
^
./Main.java:61: error: class, interface, enum, or record expected
flag : boolean;
^
./Main.java:63: error: class, interface, enum, or record expected
c : array[0..11]of integer;
^
./Main.java:65: error: class, interface, enum, or record expected
begin
^
./Main.java:69: error: class, interface, enum, or record expected
for i:=0 to 1 shl n-1 do
^
./Main.java:75: error: class, interface, enum, or record expected
sum:=0;
^
./Main.java:77: error: class, interface, enum, or record expected
k:=i;
^
./Main.java:79: error: class, interface, enum, or record expected
while k0 do
^
./Main.java:85: error: class, interface, enum, or record expected
if k mod 2=1 then begin inc(sum);c[sum]:=tot;end;
^
./Main.java:85: error: class, interface, enum, or record expected
if k mod 2=1 then begin inc(sum);c[sum]:=tot;end;
                                 ^
./Main.java:85: error: class, interface, enum, or record expected
if k mod 2=1 then begin inc(sum);c[sum]:=tot;end;
                                             ^
./Main.java:87: error: class, interface, enum, or record expected
k:=k div 2;
^
./Main.java:89: error: class, interface, enum, or record expected
end;
^
./Main.java:91: error: class, interface, enum, or record expected
flag:=true;
^
./Main.java:93: error: class, interface, enum, or record expected
for l:=1 to sum do
^
./Main.java:103: error: class, interface, enum, or record expected
break;
^
./Main.java:105: error: class, interface, enum, or record expected
end;
^
./Main.java:107: error: class, interface, enum, or record expected
if flag then check[i]:=true;
^
./Main.java:109: error: class, interface, enum, or record expected
num[i]:=sum;
^
./Main.java:111: error: class, interface, enum, or record expected
end;
^
./Main.java:113: error: class, interface, enum, or record expected
end;
^
41 errors
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1578 渡河
语言
Java
递交时间
2021-12-29 18:53:15
评测时间
2021-12-29 18:53:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes