/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
var pre,res,vis,ok,len:Array[0..101]of longint;
^
/in/Main.java:3: error: class, interface, or enum expected
lin,ans:Array[0..101]of longint;
^
/in/Main.java:5: error: class, interface, or enum expected
i,j,k,m,n,t,l,r,best:longint;
^
/in/Main.java:7: error: class, interface, or enum expected
flag:Boolean;
^
/in/Main.java:9: error: class, interface, or enum expected
s,st:String;
^
/in/Main.java:11: error: class, interface, or enum expected
function bush(s:String):longint; //????????
^
/in/Main.java:13: error: class, interface, or enum expected
var i,j:longint;
^
/in/Main.java:15: error: class, interface, or enum expected
begin
^
/in/Main.java:19: error: class, interface, or enum expected
for i:=1 to length(s) do
^
/in/Main.java:23: error: class, interface, or enum expected
end;
^
/in/Main.java:25: error: class, interface, or enum expected
procedure print(x,y:longint); //??
^
/in/Main.java:27: error: class, interface, or enum expected
var i,j:longint;
^
/in/Main.java:29: error: class, interface, or enum expected
begin
^
/in/Main.java:31: error: unclosed character literal
write('FD ');
      ^
/in/Main.java:31: error: unclosed character literal
write('FD ');
          ^
/in/Main.java:33: error: class, interface, or enum expected
write(x);
^
/in/Main.java:35: error: class, interface, or enum expected
write(' is redundant using FDs:');
^
/in/Main.java:35: error: unclosed character literal
write(' is redundant using FDs:');
      ^
/in/Main.java:35: error: unclosed character literal
write(' is redundant using FDs:');
                               ^
/in/Main.java:37: error: class, interface, or enum expected
for i:=1 to y do write(' ',ans[i]);
^
/in/Main.java:39: error: class, interface, or enum expected
writeln;
^
/in/Main.java:41: error: class, interface, or enum expected
end;
^
/in/Main.java:43: error: class, interface, or enum expected
function dfs(dep,now,goa:longint):Boolean; //DFS?????????
^
/in/Main.java:45: error: class, interface, or enum expected
var i,j,k:longint; //????
^
/in/Main.java:47: error: class, interface, or enum expected
begin
^
/in/Main.java:53: error: class, interface, or enum expected
ans:=lin;
^
/in/Main.java:55: error: class, interface, or enum expected
exit;
^
/in/Main.java:57: error: class, interface, or enum expected
end;
^
/in/Main.java:59: error: class, interface, or enum expected
if dep >= best then exit;
^
/in/Main.java:61: error: class, interface, or enum expected
for i:=1 to n do
^
/in/Main.java:67: error: class, interface, or enum expected
vis[i]:=1;
^
/in/Main.java:69: error: class, interface, or enum expected
dfs(dep+1,now or res[i],goa);
^
/in/Main.java:71: error: class, interface, or enum expected
vis[i]:=0;
^
/in/Main.java:73: error: class, interface, or enum expected
end;
^
/in/Main.java:75: error: class, interface, or enum expected
end;
^
/in/Main.java:77: error: class, interface, or enum expected
begin
^
/in/Main.java:81: error: class, interface, or enum expected
for i:=1 to n do begin
^
/in/Main.java:85: error: class, interface, or enum expected
st:=copy(s,1,pos('-',s)-1);
^
/in/Main.java:87: error: class, interface, or enum expected
delete(s,1,pos('>',s));
^
/in/Main.java:89: error: class, interface, or enum expected
pre[i]:=bush(st);
^
/in/Main.java:91: error: class, interface, or enum expected
res[i]:=bush(s);
^
/in/Main.java:93: error: class, interface, or enum expected
end;
^
/in/Main.java:95: error: class, interface, or enum expected
for i:=1 to n do begin //????FOR????
^
/in/Main.java:99: error: class, interface, or enum expected
vis[i]:=1;
^
/in/Main.java:101: error: class, interface, or enum expected
flag:=true;
^
/in/Main.java:103: error: class, interface, or enum expected
t:=pre[i]; r:=res[i];
^
/in/Main.java:103: error: class, interface, or enum expected
t:=pre[i]; r:=res[i];
           ^
/in/Main.java:105: error: class, interface, or enum expected
while flag do begin
^
/in/Main.java:109: error: class, interface, or enum expected
flag:=false;
^
/in/Main.java:111: error: class, interface, or enum expected
j:=1;
^
/in/Main.java:113: error: class, interface, or enum expected
while j
^
51 errors

信息

递交者
类型
递交
题目
P1138 冗余依赖
语言
Java
递交时间
2021-12-18 11:25:18
评测时间
2021-12-18 11:25:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes