/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
type array1=array[1..100] of longint;
^
/in/Main.java:3: error: class, interface, or enum expected
array2=array[1..170] of longint;
^
/in/Main.java:5: error: class, interface, or enum expected
var a,c,d,e,f:array1;
^
/in/Main.java:7: error: class, interface, or enum expected
b:array2;
^
/in/Main.java:9: error: class, interface, or enum expected
i,j,k,l,n,t:longint;
^
/in/Main.java:11: error: class, interface, or enum expected
s:string;
^
/in/Main.java:13: error: class, interface, or enum expected
procedure ga(var p,q:array1);
^
/in/Main.java:15: error: class, interface, or enum expected
var i:longint;
^
/in/Main.java:17: error: class, interface, or enum expected
begin
^
/in/Main.java:21: error: class, interface, or enum expected
while (q[k]=0) and (k>1) do dec(k);
^
/in/Main.java:23: error: class, interface, or enum expected
for i:=1 to k do inc(p[i],q[i]);
^
/in/Main.java:25: error: class, interface, or enum expected
k:=100;
^
/in/Main.java:27: error: class, interface, or enum expected
while (p[k]=0) and (k>1) do dec(k);
^
/in/Main.java:29: error: class, interface, or enum expected
for i:=1 to k do
^
/in/Main.java:37: error: class, interface, or enum expected
p[i]:=p[i] mod 10;
^
/in/Main.java:39: error: class, interface, or enum expected
end;
^
/in/Main.java:41: error: class, interface, or enum expected
end;
^
/in/Main.java:43: error: class, interface, or enum expected
procedure gs(var p,q:array1);
^
/in/Main.java:45: error: class, interface, or enum expected
begin
^
/in/Main.java:49: error: class, interface, or enum expected
while (q[k]=0) and (k>1) do dec(k);
^
/in/Main.java:51: error: class, interface, or enum expected
for i:=1 to k do dec(p[i],q[i]);
^
/in/Main.java:53: error: class, interface, or enum expected
k:=100;
^
/in/Main.java:55: error: class, interface, or enum expected
while (p[k]=0) and (k>1) do dec(k);
^
/in/Main.java:57: error: class, interface, or enum expected
for i:=1 to k do
^
/in/Main.java:61: error: class, interface, or enum expected
l2:=100;
^
/in/Main.java:63: error: class, interface, or enum expected
while (q[l2]=0) and (l2>1) do dec(l2);
^
/in/Main.java:65: error: class, interface, or enum expected
for i:=1 to l1 do
^
/in/Main.java:71: error: class, interface, or enum expected
for i:=1 to l1+l2 do
^
/in/Main.java:79: error: class, interface, or enum expected
gc[i]:=gc[i] mod 10;
^
/in/Main.java:81: error: class, interface, or enum expected
end;
^
/in/Main.java:83: error: class, interface, or enum expected
end;
^
/in/Main.java:85: error: class, interface, or enum expected
function gk(p:array1;q,r:longint):array1;
^
/in/Main.java:85: error: class, interface, or enum expected
function gk(p:array1;q,r:longint):array1;
                     ^
/in/Main.java:87: error: class, interface, or enum expected
var i,u,w:longint;
^
/in/Main.java:89: error: class, interface, or enum expected
begin
^
/in/Main.java:93: error: class, interface, or enum expected
for i:=2 to 10 do w:=w*q;
^
/in/Main.java:95: error: class, interface, or enum expected
u:=r div 10;
^
/in/Main.java:97: error: class, interface, or enum expected
for j:=1 to u do
^
/in/Main.java:103: error: class, interface, or enum expected
while (p[k]=0) and (k>1) do dec(k);
^
/in/Main.java:105: error: class, interface, or enum expected
for i:=1 to k do p[i]:=p[i]*w;
^
/in/Main.java:107: error: class, interface, or enum expected
k:=k+5;
^
/in/Main.java:109: error: class, interface, or enum expected
for i:=1 to k do
^
/in/Main.java:117: error: class, interface, or enum expected
p[i]:=p[i] mod 10;
^
/in/Main.java:119: error: class, interface, or enum expected
end;
^
/in/Main.java:121: error: class, interface, or enum expected
end;
^
/in/Main.java:123: error: class, interface, or enum expected
u:=r mod 10;
^
/in/Main.java:125: error: class, interface, or enum expected
for j:=1 to u do
^
/in/Main.java:131: error: class, interface, or enum expected
while (p[k]=0) and (k>1) do dec(k);
^
/in/Main.java:133: error: class, interface, or enum expected
for i:=1 to k do p[i]:=p[i]*q;
^
/in/Main.java:135: error: class, interface, or enum expected
k:=k+1;
^
/in/Main.java:137: error: class, interface, or enum expected
for i:=1 to k do
^
/in/Main.java:145: error: class, interface, or enum expected
p[i]:=p[i] mod 10;
^
/in/Main.java:147: error: class, interface, or enum expected
end;
^
/in/Main.java:149: error: class, interface, or enum expected
end;
^
/in/Main.java:151: error: class, interface, or enum expected
exit(p);
^
/in/Main.java:153: error: class, interface, or enum expected
end;
^
/in/Main.java:155: error: class, interface, or enum expected
function com(p:array1):boolean;
^
/in/Main.java:157: error: class, interface, or enum expected
begin
^
/in/Main.java:161: error: class, interface, or enum expected
while (p[k]=0) and (k>1) do dec(k);
^
/in/Main.java:163: error: class, interface, or enum expected
if p[k]0 then exit(true) else exit(false);
^
/in/Main.java:165: error: class, interface, or enum expected
end;
^
/in/Main.java:167: error: class, interface, or enum expected
procedure DtoB(p:array1);
^
/in/Main.java:169: error: class, interface, or enum expected
var step:longint;
^
/in/Main.java:171: error: class, interface, or enum expected
begin
^
/in/Main.java:175: error: class, interface, or enum expected
while com(p) do
^
/in/Main.java:181: error: class, interface, or enum expected
k:=100;
^
/in/Main.java:183: error: class, interface, or enum expected
while (p[k]=0) and (k>1) do dec(k);
^
/in/Main.java:185: error: class, interface, or enum expected
for i:=k downto 2 do
^
/in/Main.java:191: error: class, interface, or enum expected
p[i]:=p[i] div 2;
^
/in/Main.java:193: error: class, interface, or enum expected
end;
^
/in/Main.java:195: error: class, interface, or enum expected
b[step]:=p[1] mod 2;
^
/in/Main.java:197: error: class, interface, or enum expected
p[1]:=p[1] div 2;
^
/in/Main.java:199: error: class, interface, or enum expected
end;
^
/in/Main.java:201: error: class, interface, or enum expected
end;
^
/in/Main.java:203: error: class, interface, or enum expected
begin
^
/in/Main.java:207: error: class, interface, or enum expected
fillchar(b,sizeof(b),0);
^
/in/Main.java:209: error: class, interface, or enum expected
fillchar(c,sizeof(c),0);
^
/in/Main.java:211: error: class, interface, or enum expected
fillchar(d,sizeof(d),0);
^
/in/Main.java:213: error: class, interface, or enum expected
t:=0;
^
/in/Main.java:215: error: class, interface, or enum expected
d[1]:=1;
^
/in/Main.java:217: error: class, interface, or enum expected
readln(s);
^
/in/Main.java:219: error: class, interface, or enum expected
l:=length(s);
^
/in/Main.java:221: error: class, interface, or enum expected
for i:=1 to l do
^
/in/Main.java:227: error: class, interface, or enum expected
f[i]:=a[i];
^
/in/Main.java:229: error: class, interface, or enum expected
end;
^
/in/Main.java:231: error: class, interface, or enum expected
inc(a[1]);
^
/in/Main.java:233: error: class, interface, or enum expected
DtoB(a);
^
/in/Main.java:235: error: class, interface, or enum expected
n:=170;
^
/in/Main.java:237: error: class, interface, or enum expected
while (b[n]=0) and (n>1) do dec(n);
^
/in/Main.java:239: error: class, interface, or enum expected
for i:=n downto 1 do
^
/in/Main.java:247: error: class, interface, or enum expected
e:=gc(gk(d,2,t-1),gk(d,3,i-1));
^
/in/Main.java:249: error: class, interface, or enum expected
ga(c,e);
^
/in/Main.java:251: error: class, interface, or enum expected
end;
^
/in/Main.java:253: error: class, interface, or enum expected
inc(f[1],2);
^
/in/Main.java:255: error: class, interface, or enum expected
a:=gc(a,f);
^
/in/Main.java:257: error: class, interface, or enum expected
k:=100;
^
/in/Main.java:259: error: class, interface, or enum expected
while (a[k]=0) and (k>1) do dec(k);
^
/in/Main.java:261: error: class, interface, or enum expected
for i:=k downto 2 do
^
/in/Main.java:267: error: class, interface, or enum expected
a[i]:=a[i] div 2;
^
/in/Main.java:269: error: class, interface, or enum expected
end;
^
100 errors

信息

递交者
类型
递交
题目
P1494 杨辉三角形中的偶数个数
语言
Java
递交时间
2018-02-02 13:29:54
评测时间
2018-02-02 13:29:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes