/ Vijos /

记录详情

Compile Error

./Main.java:1: error: class, interface, enum, or record expected
program ctsc2000;
^
./Main.java:2: error: class, interface, enum, or record expected
var d1,l1,d2,k,y,z,y1,b,c,d,e,r,t,n,m,i,j,l:longint;
^
./Main.java:3: error: class, interface, enum, or record expected
   a:array[1..366,1..20000]of record
   ^
./Main.java:5: error: class, interface, enum, or record expected
     end;
     ^
./Main.java:6: error: class, interface, enum, or record expected
     s1,s:string;
     ^
./Main.java:7: error: class, interface, enum, or record expected
   t1:char;
   ^
./Main.java:8: error: class, interface, enum, or record expected
   p:array[1..130]of longint;
   ^
./Main.java:9: error: class, interface, enum, or record expected
   q,temp:array[0..100]of longint;
   ^
./Main.java:10: error: class, interface, enum, or record expected
   f:array[0..366,0..732]of longint;
   ^
./Main.java:11: error: class, interface, enum, or record expected
   num:array[1..366]of integer;
   ^
./Main.java:12: error: class, interface, enum, or record expected
function calc(b,c:integer):longint;
^
./Main.java:13: error: class, interface, enum, or record expected
var s,i:integer;
^
./Main.java:14: error: class, interface, enum, or record expected
begin
^
./Main.java:16: error: class, interface, enum, or record expected
  for i:=1to b-1 do
  ^
./Main.java:18: error: class, interface, enum, or record expected
  s:=s+c;
  ^
./Main.java:19: error: class, interface, enum, or record expected
  calc:=s;
  ^
./Main.java:20: error: class, interface, enum, or record expected
  end;
  ^
./Main.java:21: error: class, interface, enum, or record expected
procedure sort(w,i,j:integer);
^
./Main.java:22: error: class, interface, enum, or record expected
var x,y,mid,s:longint;
^
./Main.java:23: error: class, interface, enum, or record expected
begin
^
./Main.java:25: error: class, interface, enum, or record expected
 y:=j;
 ^
./Main.java:26: error: class, interface, enum, or record expected
 mid:=f[w,(i+j)div 2];
 ^
./Main.java:27: error: class, interface, enum, or record expected
 repeat
 ^
./Main.java:29: error: class, interface, enum, or record expected
  while f[w,y]<mid do dec(y);
  ^
./Main.java:30: error: class, interface, enum, or record expected
  if x<=y then
  ^
./Main.java:33: error: class, interface, enum, or record expected
   f[w,x]:=f[w,y];
   ^
./Main.java:34: error: class, interface, enum, or record expected
   f[w,y]:=s;
   ^
./Main.java:35: error: class, interface, enum, or record expected
   dec(y);inc(x);
   ^
./Main.java:35: error: class, interface, enum, or record expected
   dec(y);inc(x);
          ^
./Main.java:36: error: class, interface, enum, or record expected
   end;
   ^
./Main.java:37: error: class, interface, enum, or record expected
   until x>y;
   ^
./Main.java:38: error: class, interface, enum, or record expected
  if i<y then sort(w,i,y);
  ^
./Main.java:39: error: class, interface, enum, or record expected
  if j>x then sort(w,x,j);
  ^
./Main.java:40: error: class, interface, enum, or record expected
  end;
  ^
./Main.java:41: error: class, interface, enum, or record expected
begin
^
./Main.java:43: error: class, interface, enum, or record expected
 readln(y);
 ^
./Main.java:44: error: class, interface, enum, or record expected
 fillchar(num,sizeof(num),0);
 ^
./Main.java:45: error: class, interface, enum, or record expected
 q[0]:=0;
 ^
./Main.java:46: error: class, interface, enum, or record expected
 for i:=1to 12 do
 ^
./Main.java:49: error: class, interface, enum, or record expected
   4,6,9,11:q[i]:=30;
   ^
./Main.java:50: error: class, interface, enum, or record expected
   end;
   ^
./Main.java:51: error: class, interface, enum, or record expected
  if (y mod 400=0)or ((y mod 4=0)and(y mod 100<>0))then
  ^
./Main.java:54: error: class, interface, enum, or record expected
   q[2]:=29;
   ^
./Main.java:55: error: class, interface, enum, or record expected
   end
   ^
./Main.java:56: error: class, interface, enum, or record expected
   else begin q[2]:=28;y1:=365;end;
                       ^
./Main.java:56: error: class, interface, enum, or record expected
   else begin q[2]:=28;y1:=365;end;
                               ^
./Main.java:57: error: class, interface, enum, or record expected
   readln(r);
   ^
./Main.java:58: error: class, interface, enum, or record expected
 for i:=1to r do
 ^
./Main.java:61: error: class, interface, enum, or record expected
  j:=pos(' ',s);s1:=copy(s,1,j-1);
  ^
./Main.java:61: error: class, interface, enum, or record expected
  j:=pos(' ',s);s1:=copy(s,1,j-1);
                ^
./Main.java:62: error: class, interface, enum, or record expected
  delete(s,1,j+3);
  ^
./Main.java:63: error: class, interface, enum, or record expected
  j:=pos('/',s1);
  ^
./Main.java:64: error: class, interface, enum, or record expected
  val(copy(s1,1,j-1),b);
  ^
./Main.java:65: error: class, interface, enum, or record expected
  val(copy(s1,j+1,length(s1)-j),c);
  ^
./Main.java:66: error: class, interface, enum, or record expected
  j:=pos(' ',s);
  ^
./Main.java:67: error: class, interface, enum, or record expected
  s1:=copy(s,1,j-1);
  ^
./Main.java:68: error: class, interface, enum, or record expected
  delete(s,1,j);
  ^
./Main.java:69: error: class, interface, enum, or record expected
  j:=pos('/',s1);
  ^
./Main.java:70: error: class, interface, enum, or record expected
  val(copy(s1,1,j-1),d);
  ^
./Main.java:71: error: class, interface, enum, or record expected
  val(copy(s1,j+1,length(s1)-j),e);
  ^
./Main.java:72: error: class, interface, enum, or record expected
  d1:=calc(b,c);
  ^
./Main.java:73: error: class, interface, enum, or record expected
  d2:=calc(d,e);
  ^
./Main.java:74: error: class, interface, enum, or record expected
  inc(num[d2]);
  ^
./Main.java:75: error: class, interface, enum, or record expected
  a[d2,num[d2]].x:=d1;
  ^
./Main.java:76: error: class, interface, enum, or record expected
  a[d2,num[d2]].y:=d2-d1;
  ^
./Main.java:77: error: class, interface, enum, or record expected
  val(s,a[d2,num[d2]].z);
  ^
./Main.java:78: error: class, interface, enum, or record expected
  end;
  ^
./Main.java:79: error: class, interface, enum, or record expected
  for i:=1to t do
  ^
./Main.java:81: error: class, interface, enum, or record expected
   fillchar(f,sizeof(f),0);
   ^
./Main.java:82: error: class, interface, enum, or record expected
   for i:=1to y1  do
   ^
./Main.java:85: error: class, interface, enum, or record expected
    for j:=1 to num[i] do
    ^
./Main.java:88: error: class, interface, enum, or record expected
        for l:=k+1 to 2*k do
        ^
./Main.java:90: error: class, interface, enum, or record expected
        sort(i,1,2*k);
        ^
./Main.java:91: error: class, interface, enum, or record expected
        m:=1;
        ^
./Main.java:92: error: class, interface, enum, or record expected
        for l:=1to k do
        ^
./Main.java:98: error: class, interface, enum, or record expected
         temp[l]:=f[i,m];
         ^
./Main.java:99: error: class, interface, enum, or record expected
         inc(m);
         ^
./Main.java:100: error: class, interface, enum, or record expected
         if m>2*k then begin
         ^
./Main.java:101: error: class, interface, enum, or record expected
          for z:=l+1to k do temp[z]:=0;break;end;
                                       ^
./Main.java:101: error: class, interface, enum, or record expected
          for z:=l+1to k do temp[z]:=0;break;end;
                                             ^
./Main.java:102: error: class, interface, enum, or record expected
         end;
         ^
./Main.java:103: error: class, interface, enum, or record expected
         end;
         ^
./Main.java:104: error: class, interface, enum, or record expected
        for l:=1to k do
        ^
./Main.java:106: error: class, interface, enum, or record expected
    end;
    ^
./Main.java:107: error: class, interface, enum, or record expected
    end;
    ^
./Main.java:108: error: class, interface, enum, or record expected
    if (k>1)and(f[y1,k]=0)and(f[y1,k-1]=0) then writeln('-1')
    ^
./Main.java:108: error: unclosed character literal
    if (k>1)and(f[y1,k]=0)and(f[y1,k-1]=0) then writeln('-1')
                                                        ^
./Main.java:108: error: unclosed character literal
    if (k>1)and(f[y1,k]=0)and(f[y1,k-1]=0) then writeln('-1')
                                                           ^
./Main.java:111: error: class, interface, enum, or record expected
  end.
  ^
89 errors
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1170 快乐的蜜月
语言
Java
递交时间
2022-07-17 16:16:13
评测时间
2022-07-17 16:16:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes