F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_20002965_19004\Main.java:1: 错误: 需要class, interface或enum
var n,i,j,m,s,e,max,t:longint;
^
0_0_20002965_19004\Main.java:2: 错误: 需要class, interface或enum
    ans:int64;
    ^
0_0_20002965_19004\Main.java:3: 错误: 需要class, interface或enum
    c,c1:string;
    ^
0_0_20002965_19004\Main.java:4: 错误: 需要class, interface或enum
    a,tree:array[0..3000005]of longint;
    ^
0_0_20002965_19004\Main.java:5: 错误: 需要class, interface或enum
function lowbit(x:longint):longint;
^
0_0_20002965_19004\Main.java:6: 错误: 需要class, interface或enum
begin
^
0_0_20002965_19004\Main.java:8: 错误: 需要class, interface或enum
end;
^
0_0_20002965_19004\Main.java:10: 错误: 需要class, interface或enum
procedure add(x:longint);
^
0_0_20002965_19004\Main.java:11: 错误: 需要class, interface或enum
begin
^
0_0_20002965_19004\Main.java:15: 错误: 需要class, interface或enum
    x:=x+lowbit(x);
    ^
0_0_20002965_19004\Main.java:16: 错误: 需要class, interface或enum
  end;
  ^
0_0_20002965_19004\Main.java:17: 错误: 需要class, interface或enum
end;
^
0_0_20002965_19004\Main.java:19: 错误: 需要class, interface或enum
function sum(x:longint):int64;
^
0_0_20002965_19004\Main.java:20: 错误: 需要class, interface或enum
begin
^
0_0_20002965_19004\Main.java:22: 错误: 需要class, interface或enum
  while x>0 do
  ^
0_0_20002965_19004\Main.java:25: 错误: 需要class, interface或enum
    x:=x-lowbit(x);
    ^
0_0_20002965_19004\Main.java:26: 错误: 需要class, interface或enum
  end;
  ^
0_0_20002965_19004\Main.java:27: 错误: 需要class, interface或enum
end;
^
0_0_20002965_19004\Main.java:28: 错误: 需要class, interface或enum
begin
^
0_0_20002965_19004\Main.java:30: 错误: 需要class, interface或enum
  for i:=1 to n do
  ^
0_0_20002965_19004\Main.java:33: 错误: 需要class, interface或enum
    if a[i]>max then max:=a[i];
    ^
0_0_20002965_19004\Main.java:34: 错误: 需要class, interface或enum
  end;
  ^
0_0_20002965_19004\Main.java:35: 错误: 需要class, interface或enum
  for i:=1 to n do
  ^
0_0_20002965_19004\Main.java:38: 错误: 需要class, interface或enum
    ans:=ans+sum(a[i]-1);
    ^
0_0_20002965_19004\Main.java:39: 错误: 需要class, interface或enum
  end;
  ^
0_0_20002965_19004\Main.java:40: 错误: 需要class, interface或enum
  readln(m);
  ^
0_0_20002965_19004\Main.java:41: 错误: 需要class, interface或enum
  for i:=1 to m do
  ^
0_0_20002965_19004\Main.java:44: 错误: 需要class, interface或enum
    if c='Q' then writeln(ans)
    ^
0_0_20002965_19004\Main.java:47: 错误: 空字符文字
               c1:='';
                   ^
0_0_20002965_19004\Main.java:47: 错误: 未结束的字符文字
               c1:='';
                    ^
0_0_20002965_19004\Main.java:49: 错误: 需要class, interface或enum
               for j:=1 to length(c) do
               ^
0_0_20002965_19004\Main.java:54: 错误: 需要class, interface或enum
                                c1:='';
                                ^
0_0_20002965_19004\Main.java:54: 错误: 空字符文字
                                c1:='';
                                    ^
0_0_20002965_19004\Main.java:54: 错误: 未结束的字符文字
                                c1:='';
                                     ^
0_0_20002965_19004\Main.java:56: 错误: 需要class, interface或enum
               val(c1,e);
               ^
0_0_20002965_19004\Main.java:57: 错误: 需要class, interface或enum
               inc(s); inc(e);
               ^
0_0_20002965_19004\Main.java:57: 错误: 需要class, interface或enum
               inc(s); inc(e);
                       ^
0_0_20002965_19004\Main.java:58: 错误: 需要class, interface或enum
               t:=a[s];
               ^
0_0_20002965_19004\Main.java:59: 错误: 需要class, interface或enum
               for j:=s+1 to e do
               ^
0_0_20002965_19004\Main.java:62: 错误: 需要class, interface或enum
                 if a[j]>t then dec(ans) else
                 ^
0_0_20002965_19004\Main.java:64: 错误: 需要class, interface或enum
               end;
               ^
0_0_20002965_19004\Main.java:65: 错误: 需要class, interface或enum
               a[e]:=t;
               ^
0_0_20002965_19004\Main.java:66: 错误: 需要class, interface或enum
             end;
             ^
0_0_20002965_19004\Main.java:67: 错误: 需要class, interface或enum
  end;
  ^
0_0_20002965_19004\Main.java:68: 错误: 需要class, interface或enum
end.
^
45 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-17 03:57:33, Gzip enabled