/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
program s1140;
^
/in/Main.java:3: error: class, interface, or enum expected
var i,j,l,k,m,n:longint;
^
/in/Main.java:5: error: class, interface, or enum expected
wei:qword;
^
/in/Main.java:7: error: class, interface, or enum expected
w:array[0..4] of real;
^
/in/Main.java:9: error: class, interface, or enum expected
flag,mss:boolean;
^
/in/Main.java:11: error: class, interface, or enum expected
function check(x:real):boolean;
^
/in/Main.java:13: error: class, interface, or enum expected
var a,b:longint;
^
/in/Main.java:15: error: class, interface, or enum expected
begin
^
/in/Main.java:17: error: class, interface, or enum expected
b:=0;a:=0;
     ^
/in/Main.java:19: error: class, interface, or enum expected
if abs(x-round(x))>0.001 then exit(false);
^
/in/Main.java:21: error: class, interface, or enum expected
if x=10*wei then exit(false);
^
/in/Main.java:23: error: class, interface, or enum expected
b:=round(x) mod 100;
^
/in/Main.java:25: error: class, interface, or enum expected
if bm then exit(false);
^
/in/Main.java:27: error: class, interface, or enum expected
exit(true);
^
/in/Main.java:29: error: class, interface, or enum expected
end;
^
/in/Main.java:31: error: class, interface, or enum expected
function ww(o:integer;x,y:real):real;
^
/in/Main.java:31: error: class, interface, or enum expected
function ww(o:integer;x,y:real):real;
                      ^
/in/Main.java:33: error: class, interface, or enum expected
begin
^
/in/Main.java:35: error: class, interface, or enum expected
if (o=4) and (y=0) then begin flag:=true; exit(0); end;
                                          ^
/in/Main.java:35: error: class, interface, or enum expected
if (o=4) and (y=0) then begin flag:=true; exit(0); end;
                                                   ^
/in/Main.java:37: error: class, interface, or enum expected
if (o=6) and (x=0) then begin flag:=true; exit(0); end;
^
/in/Main.java:37: error: class, interface, or enum expected
if (o=6) and (x=0) then begin flag:=true; exit(0); end;
                                          ^
/in/Main.java:37: error: class, interface, or enum expected
if (o=6) and (x=0) then begin flag:=true; exit(0); end;
                                                   ^
/in/Main.java:39: error: class, interface, or enum expected
case o of
^
/in/Main.java:43: error: class, interface, or enum expected
2: exit(x-y);
^
/in/Main.java:45: error: class, interface, or enum expected
3: exit(x*y);
^
/in/Main.java:47: error: class, interface, or enum expected
4: exit(x/y);
^
/in/Main.java:49: error: class, interface, or enum expected
5: exit(y-x);
^
/in/Main.java:51: error: class, interface, or enum expected
6: exit(y/x);
^
/in/Main.java:53: error: class, interface, or enum expected
end;
^
/in/Main.java:55: error: class, interface, or enum expected
end;
^
/in/Main.java:57: error: class, interface, or enum expected
procedure search(x,y,z,v:longint);
^
/in/Main.java:59: error: class, interface, or enum expected
var i,j,l,k:longint;
^
/in/Main.java:61: error: class, interface, or enum expected
a,b,c,d,ans:real;
^
/in/Main.java:63: error: class, interface, or enum expected
begin
^
/in/Main.java:67: error: class, interface, or enum expected
a:=w[x]; b:=w[y]; c:=w[z]; d:=w[v];
^
/in/Main.java:67: error: class, interface, or enum expected
a:=w[x]; b:=w[y]; c:=w[z]; d:=w[v];
         ^
/in/Main.java:67: error: class, interface, or enum expected
a:=w[x]; b:=w[y]; c:=w[z]; d:=w[v];
                  ^
/in/Main.java:67: error: class, interface, or enum expected
a:=w[x]; b:=w[y]; c:=w[z]; d:=w[v];
                           ^
/in/Main.java:69: error: class, interface, or enum expected
for i:=1 to 6 do
^
/in/Main.java:79: error: class, interface, or enum expected
if check(ans) then begin writeln(1); mss:=true; exit; end;
^
/in/Main.java:79: error: class, interface, or enum expected
if check(ans) then begin writeln(1); mss:=true; exit; end;
                                     ^
/in/Main.java:79: error: class, interface, or enum expected
if check(ans) then begin writeln(1); mss:=true; exit; end;
                                                ^
/in/Main.java:79: error: class, interface, or enum expected
if check(ans) then begin writeln(1); mss:=true; exit; end;
                                                      ^
/in/Main.java:81: error: class, interface, or enum expected
ans:=ww(k,ww(i,a,b),ww(j,c,d));
^
/in/Main.java:83: error: class, interface, or enum expected
if check(ans) then begin writeln(1); mss:=true; exit; end;
^
/in/Main.java:83: error: class, interface, or enum expected
if check(ans) then begin writeln(1); mss:=true; exit; end;
                                     ^
/in/Main.java:83: error: class, interface, or enum expected
if check(ans) then begin writeln(1); mss:=true; exit; end;
                                                ^
/in/Main.java:83: error: class, interface, or enum expected
if check(ans) then begin writeln(1); mss:=true; exit; end;
                                                      ^
/in/Main.java:85: error: class, interface, or enum expected
end;
^
/in/Main.java:87: error: class, interface, or enum expected
end;
^
/in/Main.java:89: error: class, interface, or enum expected
begin
^
/in/Main.java:95: error: class, interface, or enum expected
w[0]:=w[4];
^
/in/Main.java:97: error: class, interface, or enum expected
repeat
^
/in/Main.java:101: error: class, interface, or enum expected
if n=1 then halt;
^
/in/Main.java:103: error: class, interface, or enum expected
readln(m);
^
/in/Main.java:105: error: class, interface, or enum expected
wei:=1;
^
/in/Main.java:107: error: class, interface, or enum expected
for i:=1 to n-1 do wei:=wei*10;
^
/in/Main.java:109: error: class, interface, or enum expected
mss:=false;
^
/in/Main.java:111: error: class, interface, or enum expected
for i:=1 to 4 do
^
/in/Main.java:117: error: class, interface, or enum expected
for j:=i+1 to i+3 do
^
/in/Main.java:123: error: class, interface, or enum expected
for k:=j+1 to j+3 do
^
/in/Main.java:129: error: class, interface, or enum expected
if (k mod 4)(i mod 4) then
^
/in/Main.java:139: error: class, interface, or enum expected
search((i mod 4),(j mod 4),(k mod 4),(l mod 4));
^
/in/Main.java:141: error: class, interface, or enum expected
end;
^
/in/Main.java:143: error: class, interface, or enum expected
end;
^
/in/Main.java:145: error: class, interface, or enum expected
end;
^
/in/Main.java:147: error: class, interface, or enum expected
end;
^
/in/Main.java:148: error: class, interface, or enum expected
if (not mss) and (n>1) then writeln(0);
^
/in/Main.java:150: error: class, interface, or enum expected
until n=1;
^
/in/Main.java:152: error: class, interface, or enum expected
end.
^
71 errors

信息

递交者
类型
递交
题目
P1140 24点游戏狂想曲
语言
Java
递交时间
2018-02-01 14:52:51
评测时间
2018-02-01 14:52:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes