/ Vijos /

记录详情

Compile Error

./Main.java:1: error: class, interface, or enum expected
type  
^
./Main.java:3: error: class, interface, or enum expected
const  
^
./Main.java:5: error: class, interface, or enum expected
var  
^
./Main.java:7: error: class, interface, or enum expected
procedure print(idx,nodes : longint);  
^
./Main.java:8: error: class, interface, or enum expected
var  
^
./Main.java:10: error: class, interface, or enum expected
begin  
^
./Main.java:12: error: class, interface, or enum expected
if nodes = 1 then begin  
^
./Main.java:14: error: class, interface, or enum expected
exit;  
^
./Main.java:15: error: class, interface, or enum expected
end;  
^
./Main.java:16: error: class, interface, or enum expected
for i := 0 to nodes-1 do begin  
^
./Main.java:18: error: class, interface, or enum expected
if temp > idx then begin  
^
./Main.java:20: error: class, interface, or enum expected
j := i;  
^
./Main.java:21: error: class, interface, or enum expected
break;  
^
./Main.java:22: error: class, interface, or enum expected
end;  
^
./Main.java:23: error: class, interface, or enum expected
end;  
^
./Main.java:24: error: class, interface, or enum expected
if j  0 then begin  
^
./Main.java:26: error: class, interface, or enum expected
write('(');  
^
./Main.java:27: error: class, interface, or enum expected
print(pos1,j);  
^
./Main.java:28: error: class, interface, or enum expected
write(')');  
^
./Main.java:29: error: class, interface, or enum expected
end;  
^
./Main.java:30: error: class, interface, or enum expected
write('X');  
^
./Main.java:31: error: class, interface, or enum expected
if (nodes-1-j)  0 then begin  
^
./Main.java:33: error: class, interface, or enum expected
write('(');  
^
./Main.java:34: error: class, interface, or enum expected
print(pos2,nodes-1-j);  
^
./Main.java:35: error: class, interface, or enum expected
write(')');  
^
./Main.java:36: error: class, interface, or enum expected
end;  
^
./Main.java:37: error: class, interface, or enum expected
end;  
^
./Main.java:38: error: class, interface, or enum expected
procedure solve(n : longint);  
^
./Main.java:39: error: class, interface, or enum expected
var  
^
./Main.java:41: error: class, interface, or enum expected
begin  
^
./Main.java:43: error: class, interface, or enum expected
nodes:=0;  
^
./Main.java:44: error: class, interface, or enum expected
while temp
^
32 errors
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1400 cpc的逃离
语言
Java
递交时间
2021-08-10 20:10:01
评测时间
2021-08-10 20:10:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes