/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
var n,v,k,i,j,m:longint;
^
/in/Main.java:3: error: class, interface, or enum expected
a:real;
^
/in/Main.java:5: error: class, interface, or enum expected
f:array[0..200,0..200] of real;
^
/in/Main.java:7: error: class, interface, or enum expected
g:array[0..200] of longint;
^
/in/Main.java:9: error: class, interface, or enum expected
function max(b,c:real):real;
^
/in/Main.java:11: error: class, interface, or enum expected
begin
^
/in/Main.java:17: error: class, interface, or enum expected
end;
^
/in/Main.java:19: error: class, interface, or enum expected
begin
^
/in/Main.java:21: error: class, interface, or enum expected
read(n,v,k);readln;
            ^
/in/Main.java:23: error: class, interface, or enum expected
for i:=2 to n do
^
/in/Main.java:29: error: class, interface, or enum expected
end;
^
/in/Main.java:31: error: class, interface, or enum expected
if k+g[n]>=v then f[n,v]:=v;
^
/in/Main.java:33: error: class, interface, or enum expected
for i:=n-1 downto 2 do
^
/in/Main.java:39: error: class, interface, or enum expected
for j:=g[2] to g[2]+2 do
^
/in/Main.java:43: error: class, interface, or enum expected
if a>0 then begin a:=a/(n-1);writeln(a:0:2); end
^
/in/Main.java:43: error: class, interface, or enum expected
if a>0 then begin a:=a/(n-1);writeln(a:0:2); end
                             ^
/in/Main.java:43: error: class, interface, or enum expected
if a>0 then begin a:=a/(n-1);writeln(a:0:2); end
                                             ^
/in/Main.java:45: error: unclosed character literal
else writeln('REN JIU SHI BU NENG REN CI!');
             ^
/in/Main.java:45: error: unclosed character literal
else writeln('REN JIU SHI BU NENG REN CI!');
                                         ^
/in/Main.java:47: error: class, interface, or enum expected
end.
^
20 errors

信息

递交者
类型
递交
题目
P1594 锁妖塔
语言
Java
递交时间
2020-05-18 21:53:55
评测时间
2020-05-18 21:53:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes