/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
var n,m,a,b,c,d,i,t,l:longint;
^
/in/Main.java:3: error: class, interface, or enum expected
ch:char;
^
/in/Main.java:5: error: class, interface, or enum expected
s:double;
^
/in/Main.java:7: error: class, interface, or enum expected
aa:array[0..256]of longint;
^
/in/Main.java:9: error: class, interface, or enum expected
begin
^
/in/Main.java:13: error: class, interface, or enum expected
m:=round(ln(n)/ln(2));
^
/in/Main.java:15: error: class, interface, or enum expected
s:=100;
^
/in/Main.java:17: error: class, interface, or enum expected
for i:=1 to m do
^
/in/Main.java:23: error: class, interface, or enum expected
s:=s*a/100*b/100*c/100;
^
/in/Main.java:25: error: class, interface, or enum expected
end;
^
/in/Main.java:27: error: class, interface, or enum expected
writeln(s:0:2);
^
/in/Main.java:29: error: class, interface, or enum expected
t:=0;
^
/in/Main.java:31: error: class, interface, or enum expected
for i:=1 to m do
^
/in/Main.java:37: error: class, interface, or enum expected
readln(a,b,c,d);
^
/in/Main.java:39: error: class, interface, or enum expected
s:=s*a/100*b/100*c/100*d+d;
^
/in/Main.java:41: error: class, interface, or enum expected
t:=t+trunc(s);
^
/in/Main.java:43: error: class, interface, or enum expected
end;
^
/in/Main.java:45: error: class, interface, or enum expected
readln(l);
^
/in/Main.java:47: error: class, interface, or enum expected
for i:=1 to l do
^
/in/Main.java:53: error: class, interface, or enum expected
aa[i]:=ord(ch)-48;
^
/in/Main.java:55: error: class, interface, or enum expected
end;
^
/in/Main.java:57: error: class, interface, or enum expected
aa[l]:=aa[l]+t;
^
/in/Main.java:59: error: class, interface, or enum expected
for i:=l downto 1 do
^
/in/Main.java:65: error: class, interface, or enum expected
for i:=1 to l do write(aa[i]);
^
/in/Main.java:67: error: class, interface, or enum expected
writeln;
^
/in/Main.java:69: error: class, interface, or enum expected
end.
^
26 errors

信息

递交者
类型
递交
题目
P1436 简单的比赛
语言
Java
递交时间
2020-06-12 18:56:17
评测时间
2020-06-12 18:56:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes