/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
const
^
/in/Main.java:2: error: class, interface, or enum expected
  maxn=10000;
  ^
/in/Main.java:3: error: class, interface, or enum expected
var
^
/in/Main.java:5: error: class, interface, or enum expected
  s:array[0..maxn] of ansistring;
  ^
/in/Main.java:6: error: class, interface, or enum expected
  i,j,max,n:longint;
  ^
/in/Main.java:9: error: class, interface, or enum expected
procedure qsort(l,r:longint);
^
/in/Main.java:10: error: class, interface, or enum expected
var
^
/in/Main.java:12: error: class, interface, or enum expected
  k:ansistring;
  ^
/in/Main.java:13: error: class, interface, or enum expected
  k1:string;
  ^
/in/Main.java:14: error: class, interface, or enum expected
begin
^
/in/Main.java:16: error: class, interface, or enum expected
  i:=l;j:=r;
  ^
/in/Main.java:16: error: class, interface, or enum expected
  i:=l;j:=r;
       ^
/in/Main.java:17: error: class, interface, or enum expected
  k:=s[(l+r) div 2];
  ^
/in/Main.java:18: error: class, interface, or enum expected
  k1:=name[(l+r) div 2];
  ^
/in/Main.java:19: error: class, interface, or enum expected
  repeat
  ^
/in/Main.java:21: error: class, interface, or enum expected
    while (s[j]<k) or ((s[j]=k) and (name[j]>k1)) do dec(j);
    ^
/in/Main.java:22: error: class, interface, or enum expected
    if i<=j then
    ^
/in/Main.java:24: error: class, interface, or enum expected
        s[0]:=s[i];s[i]:=s[j];s[j]:=s[0];
                   ^
/in/Main.java:24: error: class, interface, or enum expected
        s[0]:=s[i];s[i]:=s[j];s[j]:=s[0];
                              ^
/in/Main.java:25: error: class, interface, or enum expected
        name[0]:=name[i];name[i]:=name[j];name[j]:=name[0];
        ^
/in/Main.java:25: error: class, interface, or enum expected
        name[0]:=name[i];name[i]:=name[j];name[j]:=name[0];
                         ^
/in/Main.java:25: error: class, interface, or enum expected
        name[0]:=name[i];name[i]:=name[j];name[j]:=name[0];
                                          ^
/in/Main.java:26: error: class, interface, or enum expected
        inc(i);dec(j);
        ^
/in/Main.java:26: error: class, interface, or enum expected
        inc(i);dec(j);
               ^
/in/Main.java:27: error: class, interface, or enum expected
      end;
      ^
/in/Main.java:28: error: class, interface, or enum expected
  until i>j;
  ^
/in/Main.java:29: error: class, interface, or enum expected
  qsort(i,r);qsort(l,j);
  ^
/in/Main.java:29: error: class, interface, or enum expected
  qsort(i,r);qsort(l,j);
             ^
/in/Main.java:30: error: class, interface, or enum expected
end;
^
/in/Main.java:33: error: class, interface, or enum expected
begin
^
/in/Main.java:35: error: class, interface, or enum expected
  for i:=1 to n do
  ^
/in/Main.java:38: error: class, interface, or enum expected
      readln(s[i]);
      ^
/in/Main.java:39: error: class, interface, or enum expected
      if length(s[i])>max then max:=length(s[i]);
      ^
/in/Main.java:40: error: class, interface, or enum expected
    end;
    ^
/in/Main.java:41: error: class, interface, or enum expected
  for i:=1 to n do
  ^
/in/Main.java:44: error: class, interface, or enum expected
  qsort(1,n);
  ^
/in/Main.java:45: error: class, interface, or enum expected
  for i:=1 to n do
  ^
/in/Main.java:47: error: class, interface, or enum expected
end.
^
38 errors

信息

递交者
类型
递交
题目
P1257 水王争霸
语言
Java
递交时间
2024-09-16 08:22:13
评测时间
2024-09-16 08:22:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes