/ Vijos /

记录详情

Compile Error

./Main.java:1: error: class, interface, enum, or record expected
var
^
./Main.java:5: error: class, interface, enum, or record expected
s,p,ans,h:extended;
^
./Main.java:7: error: class, interface, enum, or record expected
procedure swap(var x,y:int64);
^
./Main.java:9: error: class, interface, enum, or record expected
var
^
./Main.java:13: error: class, interface, enum, or record expected
begin
^
./Main.java:17: error: class, interface, enum, or record expected
x:=y;
^
./Main.java:19: error: class, interface, enum, or record expected
y:=tmp;
^
./Main.java:21: error: class, interface, enum, or record expected
end;
^
./Main.java:23: error: class, interface, enum, or record expected
begin
^
./Main.java:31: error: class, interface, enum, or record expected
if a>b then
^
./Main.java:35: error: class, interface, enum, or record expected
if a>c then
^
./Main.java:39: error: class, interface, enum, or record expected
if b>c then
^
./Main.java:43: error: class, interface, enum, or record expected
if (a=0) and (b=0) and (c=0) then
^
./Main.java:55: error: class, interface, enum, or record expected
ans:=s-sqr(a*h/(a+h));
^
./Main.java:57: error: class, interface, enum, or record expected
writeln(ans:0:3);
^
./Main.java:59: error: class, interface, enum, or record expected
end
^
16 errors
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1511 废物利用
语言
Java
递交时间
2023-12-09 08:41:07
评测时间
2023-12-09 08:41:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes