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_29109155_31889.cpp:18:10: error: 'N' was not declared in this scope
  int sum[N*20][2],cnt[N*20],ed,c,mc;
          ^
0_0_29109155_31889.cpp:18:23: error: 'N' was not declared in this scope
  int sum[N*20][2],cnt[N*20],ed,c,mc;
                       ^
0_0_29109155_31889.cpp:31:2: error: 'LL' does not name a type
  LL ask(int x,int now=0,LL ans=0){
  ^
0_0_29109155_31889.cpp: In member function 'void Trie::init()':
0_0_29109155_31889.cpp:19:17: error: 'cnt' was not declared in this scope
  void init(){ed=cnt[0]=0,sum[0][0]=sum[0][1]=0;}
                 ^
0_0_29109155_31889.cpp:19:26: error: 'sum' was not declared in this scope
  void init(){ed=cnt[0]=0,sum[0][0]=sum[0][1]=0;}
                          ^
0_0_29109155_31889.cpp: In member function 'void Trie::insert(int, int)':
0_0_29109155_31889.cpp:23:8: error: 'sum' was not declared in this scope
    if(!sum[now][c])
        ^
0_0_29109155_31889.cpp:24:21: error: 'cnt' was not declared in this scope
    sum[now][c]=++ed,cnt[ed]=0,sum[ed][0]=sum[ed][1]=0;
                     ^
0_0_29109155_31889.cpp:25:8: error: 'sum' was not declared in this scope
    now=sum[now][c],cnt[now]++;
        ^
0_0_29109155_31889.cpp:25:20: error: 'cnt' was not declared in this scope
    now=sum[now][c],cnt[now]++;
                    ^
0_0_29109155_31889.cpp: In member function 'void Trie::del(int, int)':
0_0_29109155_31889.cpp:29:38: error: 'sum' was not declared in this scope
   for(int i=17;i>=0;i--)c=x>>i&1,now=sum[now][c],cnt[now]--;
                                      ^
0_0_29109155_31889.cpp:29:50: error: 'cnt' was not declared in this scope
   for(int i=17;i>=0;i--)c=x>>i&1,now=sum[now][c],cnt[now]--;
                                                  ^
0_0_29109155_31889.cpp: In function 'int main()':
0_0_29109155_31889.cpp:92:32: error: 'struct Trie' has no member named 'ask'
    while(r<qz[i].r)r++,ans+=tr.ask(va[r]),tr.insert(va[r]);
                                ^
0_0_29109155_31889.cpp:92:36: error: 'va' was not declared in this scope
    while(r<qz[i].r)r++,ans+=tr.ask(va[r]),tr.insert(va[r]);
                                    ^
0_0_29109155_31889.cpp:93:32: error: 'struct Trie' has no member named 'ask'
    while(l>qz[i].l)l--,ans+=tr.ask(va[l]),tr.insert(va[l]);
                                ^
0_0_29109155_31889.cpp:93:36: error: 'va' was not declared in this scope
    while(l>qz[i].l)l--,ans+=tr.ask(va[l]),tr.insert(va[l]);
                                    ^
0_0_29109155_31889.cpp:94:27: error: 'va' was not declared in this scope
    while(r>qz[i].r)tr.del(va[r]),ans-=tr.ask(va[r]),r--;
                           ^
0_0_29109155_31889.cpp:94:42: error: 'struct Trie' has no member named 'ask'
    while(r>qz[i].r)tr.del(va[r]),ans-=tr.ask(va[r]),r--;
                                          ^
0_0_29109155_31889.cpp:95:27: error: 'va' was not declared in this scope
    while(l<qz[i].l)tr.del(va[l]),ans-=tr.ask(va[l]),l++;
                           ^
0_0_29109155_31889.cpp:95:42: error: 'struct Trie' has no member named 'ask'
    while(l<qz[i].l)tr.del(va[l]),ans-=tr.ask(va[l]),l++;
                                          ^


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-23 06:10:59, Gzip enabled