/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
program vjiosP1553;
^
/in/Main.java:3: error: class, interface, or enum expected
type
^
/in/Main.java:5: error: class, interface, or enum expected
        node=record
        ^
/in/Main.java:7: error: class, interface, or enum expected
                next:point;
                ^
/in/Main.java:8: error: class, interface, or enum expected
        end;
        ^
/in/Main.java:9: error: class, interface, or enum expected
var
^
/in/Main.java:11: error: class, interface, or enum expected
        head:array[1..500050] of point;
        ^
/in/Main.java:12: error: class, interface, or enum expected
        list:array[1..500050] of longint;
        ^
/in/Main.java:13: error: class, interface, or enum expected
        lists:longint;
        ^
/in/Main.java:14: error: class, interface, or enum expected
        visit,flag:array[1..5000050] of boolean;
        ^
/in/Main.java:15: error: class, interface, or enum expected
        pre,pred,sum,f:array[1..500050] of longint;
        ^
/in/Main.java:16: error: class, interface, or enum expected
        key,max:longint;
        ^
/in/Main.java:17: error: class, interface, or enum expected
        ans:longint;
        ^
/in/Main.java:18: error: class, interface, or enum expected
        queue,qt:array[1..500050] of longint;
        ^
/in/Main.java:19: error: class, interface, or enum expected
        qhead,qtail:longint;
        ^
/in/Main.java:21: error: class, interface, or enum expected
function maxf(a,b:longint):longint;
^
/in/Main.java:22: error: class, interface, or enum expected
begin
^
/in/Main.java:27: error: class, interface, or enum expected
end;
^
/in/Main.java:29: error: class, interface, or enum expected
function minf(a,b:longint):longint;
^
/in/Main.java:30: error: class, interface, or enum expected
begin
^
/in/Main.java:35: error: class, interface, or enum expected
end;
^
/in/Main.java:37: error: class, interface, or enum expected
procedure initdfs;
^
/in/Main.java:38: error: class, interface, or enum expected
begin
^
/in/Main.java:40: error: class, interface, or enum expected
        fillchar(pre,sizeof(pre),0);
        ^
/in/Main.java:41: error: class, interface, or enum expected
        fillchar(pred,sizeof(pred),0);
        ^
/in/Main.java:42: error: class, interface, or enum expected
        max:=0;
        ^
/in/Main.java:43: error: class, interface, or enum expected
end;
^
/in/Main.java:45: error: class, interface, or enum expected
procedure initq;
^
/in/Main.java:46: error: class, interface, or enum expected
begin
^
/in/Main.java:48: error: class, interface, or enum expected
        qtail:=1;
        ^
/in/Main.java:49: error: class, interface, or enum expected
end;
^
/in/Main.java:51: error: class, interface, or enum expected
procedure put(data,id:longint);
^
/in/Main.java:52: error: class, interface, or enum expected
var
^
/in/Main.java:54: error: class, interface, or enum expected
begin
^
/in/Main.java:56: error: class, interface, or enum expected
        while queue[tmp]>data do
        ^
/in/Main.java:58: error: class, interface, or enum expected
        queue[tmp]:=data;
        ^
/in/Main.java:59: error: class, interface, or enum expected
        qt[tmp]:=id;
        ^
/in/Main.java:60: error: class, interface, or enum expected
        qtail:=tmp;
        ^
/in/Main.java:61: error: class, interface, or enum expected
end;
^
/in/Main.java:63: error: class, interface, or enum expected
function find(l:longint):longint;
^
/in/Main.java:64: error: class, interface, or enum expected
begin
^
/in/Main.java:66: error: class, interface, or enum expected
        exit(queue[qhead]);
        ^
/in/Main.java:67: error: class, interface, or enum expected
end;
^
/in/Main.java:69: error: class, interface, or enum expected
procedure initp(x:longint);
^
/in/Main.java:70: error: class, interface, or enum expected
begin
^
/in/Main.java:72: error: class, interface, or enum expected
end;
^
/in/Main.java:74: error: class, interface, or enum expected
procedure insert(u,v,w:longint);
^
/in/Main.java:75: error: class, interface, or enum expected
var
^
/in/Main.java:77: error: class, interface, or enum expected
begin
^
/in/Main.java:79: error: class, interface, or enum expected
        p^.data:=v;
        ^
/in/Main.java:80: error: class, interface, or enum expected
        p^.w:=w;
        ^
/in/Main.java:81: error: class, interface, or enum expected
        p^.next:=head[u];
        ^
/in/Main.java:82: error: class, interface, or enum expected
        head[u]:=p;
        ^
/in/Main.java:83: error: class, interface, or enum expected
end;
^
/in/Main.java:85: error: class, interface, or enum expected
procedure inputdata;
^
/in/Main.java:86: error: class, interface, or enum expected
var
^
/in/Main.java:88: error: class, interface, or enum expected
        u,v,w:longint;
        ^
/in/Main.java:89: error: class, interface, or enum expected
begin
^
/in/Main.java:91: error: class, interface, or enum expected
        readln(n,s);
        ^
/in/Main.java:92: error: class, interface, or enum expected
        for i:=1 to n do
        ^
/in/Main.java:94: error: class, interface, or enum expected
        for i:=1 to n-1 do
        ^
/in/Main.java:97: error: class, interface, or enum expected
                insert(u,v,w);
                ^
/in/Main.java:98: error: class, interface, or enum expected
                insert(v,u,w);
                ^
/in/Main.java:99: error: class, interface, or enum expected
        end;
        ^
/in/Main.java:100: error: class, interface, or enum expected
end;
^
/in/Main.java:102: error: class, interface, or enum expected
procedure dfs(id,dist:longint);
^
/in/Main.java:103: error: class, interface, or enum expected
var
^
/in/Main.java:105: error: class, interface, or enum expected
        nowid,nowd:longint;
        ^
/in/Main.java:106: error: class, interface, or enum expected
begin
^
/in/Main.java:108: error: class, interface, or enum expected
        now:=head[id];
        ^
/in/Main.java:109: error: class, interface, or enum expected
        while now<>nil do
        ^
/in/Main.java:112: error: class, interface, or enum expected
                nowd:=dist+now^.w;
                ^
/in/Main.java:113: error: class, interface, or enum expected
                if (not visit[nowid]) and (not flag[nowid]) then
                ^
/in/Main.java:116: error: class, interface, or enum expected
                        pred[nowid]:=now^.w;
                        ^
/in/Main.java:117: error: class, interface, or enum expected
                        if nowd>max then
                        ^
/in/Main.java:120: error: class, interface, or enum expected
                                max:=nowd;
                                ^
/in/Main.java:121: error: class, interface, or enum expected
                        end;
                        ^
/in/Main.java:122: error: class, interface, or enum expected
                        dfs(nowid,nowd);
                        ^
/in/Main.java:123: error: class, interface, or enum expected
                end;
                ^
/in/Main.java:124: error: class, interface, or enum expected
                now:=now^.next;
                ^
/in/Main.java:125: error: class, interface, or enum expected
        end;
        ^
/in/Main.java:126: error: class, interface, or enum expected
end;
^
/in/Main.java:128: error: class, interface, or enum expected
procedure work1;
^
/in/Main.java:129: error: class, interface, or enum expected
var
^
/in/Main.java:131: error: class, interface, or enum expected
        i:longint;
        ^
/in/Main.java:132: error: class, interface, or enum expected
begin
^
/in/Main.java:134: error: class, interface, or enum expected
        pre[1]:=1;
        ^
/in/Main.java:135: error: class, interface, or enum expected
        dfs(1,0);
        ^
/in/Main.java:136: error: class, interface, or enum expected
        initdfs;
        ^
/in/Main.java:137: error: class, interface, or enum expected
        pre[key]:=key;
        ^
/in/Main.java:138: error: class, interface, or enum expected
        pred[key]:=0;
        ^
/in/Main.java:139: error: class, interface, or enum expected
      

信息

递交者
类型
递交
题目
P1553 树网的核加强版
语言
Java
递交时间
2020-05-31 20:56:05
评测时间
2020-05-31 20:56:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes