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_21650284_27901.cpp:8:12: error: 'Maxn' was not declared in this scope
 int preIdx[Maxn+5],sufIdx[Maxn+5];
            ^
0_0_21650284_27901.cpp:8:27: error: 'Maxn' was not declared in this scope
 int preIdx[Maxn+5],sufIdx[Maxn+5];
                           ^
0_0_21650284_27901.cpp:9:15: error: 'Maxn' was not declared in this scope
 string preStr[Maxn+5],sufStr[Maxn+5];
               ^
0_0_21650284_27901.cpp:9:30: error: 'Maxn' was not declared in this scope
 string preStr[Maxn+5],sufStr[Maxn+5];
                              ^
0_0_21650284_27901.cpp:10:9: error: 'Maxn' was not declared in this scope
 int len[Maxn+5],lenIdx[Maxn+5];
         ^
0_0_21650284_27901.cpp:10:24: error: 'Maxn' was not declared in this scope
 int len[Maxn+5],lenIdx[Maxn+5];
                        ^
0_0_21650284_27901.cpp:12:15: error: 'Maxn' was not declared in this scope
 string preQey[Maxn+5],sufQey[Maxn+5];
               ^
0_0_21650284_27901.cpp:12:30: error: 'Maxn' was not declared in this scope
 string preQey[Maxn+5],sufQey[Maxn+5];
                              ^
0_0_21650284_27901.cpp:13:12: error: 'Maxn' was not declared in this scope
 int qeyLen[Maxn+5],qeyIdx[Maxn+5];
            ^
0_0_21650284_27901.cpp:13:27: error: 'Maxn' was not declared in this scope
 int qeyLen[Maxn+5],qeyIdx[Maxn+5];
                           ^
0_0_21650284_27901.cpp:15:10: error: 'Maxn' was not declared in this scope
 int root[Maxn+5];
          ^
0_0_21650284_27901.cpp: In function 'void add(int, int, int)':
0_0_21650284_27901.cpp:18:18: error: 'Maxn' was not declared in this scope
  for (int i=x;i<=Maxn;i+=lowbit(i)) modify(root[i],1,n,y,val); 
                  ^
0_0_21650284_27901.cpp:18:44: error: 'root' was not declared in this scope
  for (int i=x;i<=Maxn;i+=lowbit(i)) modify(root[i],1,n,y,val); 
                                            ^
0_0_21650284_27901.cpp:18:61: error: 'modify' was not declared in this scope
  for (int i=x;i<=Maxn;i+=lowbit(i)) modify(root[i],1,n,y,val); 
                                                             ^
0_0_21650284_27901.cpp: In function 'int get(int, int, int, int)':
0_0_21650284_27901.cpp:23:14: error: 'root' was not declared in this scope
   ret+=query(root[i],1,n,l,r);
              ^
0_0_21650284_27901.cpp:23:29: error: 'query' was not declared in this scope
   ret+=query(root[i],1,n,l,r);
                             ^
0_0_21650284_27901.cpp: At global scope:
0_0_21650284_27901.cpp:27:9: error: 'Maxn' was not declared in this scope
 int sum[Maxn*10+5];
         ^
0_0_21650284_27901.cpp:28:8: error: 'Maxn' was not declared in this scope
 int ch[Maxn*10+5][2];
        ^
0_0_21650284_27901.cpp: In function 'void modify(int&, int, int, int, int)':
0_0_21650284_27901.cpp:31:7: error: 'nume' was not declared in this scope
   x=++nume;
       ^
0_0_21650284_27901.cpp:32:3: error: 'sum' was not declared in this scope
   sum[x]=ch[x][0]=ch[x][1]=0;
   ^
0_0_21650284_27901.cpp:32:10: error: 'ch' was not declared in this scope
   sum[x]=ch[x][0]=ch[x][1]=0;
          ^
0_0_21650284_27901.cpp:34:2: error: 'sum' was not declared in this scope
  sum[x]+=val;
  ^
0_0_21650284_27901.cpp:37:10: error: 'ch' was not declared in this scope
   modify(ch[x][0],l,mid,pos,val); 
          ^
0_0_21650284_27901.cpp:38:15: error: 'ch' was not declared in this scope
  }else modify(ch[x][1],mid+1,r,pos,val);
               ^
0_0_21650284_27901.cpp: In function 'int query(int, int, int, int, int)':
0_0_21650284_27901.cpp:42:34: error: 'sum' was not declared in this scope
  if (l<=left && right<=r) return sum[x];
                                  ^
0_0_21650284_27901.cpp:44:28: error: 'ch' was not declared in this scope
  if (left<=mid) ret+=query(ch[x][0],l,mid,left,right);
                            ^
0_0_21650284_27901.cpp:45:31: error: 'ch' was not declared in this scope
  if (mid+1<=right) ret+=query(ch[x][1],mid+1,r,left,right);
                               ^
0_0_21650284_27901.cpp: In function 'bool cmpPre(int, int)':
0_0_21650284_27901.cpp:49:40: error: 'preStr' was not declared in this scope
 inline bool cmpPre(int a,int b){return preStr[a]<preStr[b];}
                                        ^
0_0_21650284_27901.cpp: In function 'bool cmpSuf(int, int)':
0_0_21650284_27901.cpp:50:40: error: 'sufStr' was not declared in this scope
 inline bool cmpSuf(int a,int b){return sufStr[a]<sufStr[b];}
                                        ^
0_0_21650284_27901.cpp: In function 'bool cmpLen(int, int)':
0_0_21650284_27901.cpp:51:40: error: 'len' was not declared in this scope
 inline bool cmpLen(int a,int b){return len[a]>len[b];}
                                        ^
0_0_21650284_27901.cpp: In function 'bool cmpQey(int, int)':
0_0_21650284_27901.cpp:52:40: error: 'qeyLen' was not declared in this scope
 inline bool cmpQey(int a,int b){return qeyLen[a]>qeyLen[b];}
                                        ^
0_0_21650284_27901.cpp: In function 'void solve(int)':
0_0_21650284_27901.cpp:57:2: error: 'cin' was not declared in this scope
  cin>>n>>Q;
  ^
0_0_21650284_27901.cpp:58:30: error: 'preStr' was not declared in this scope
  for (int i=1;i<=n;i++) cin>>preStr[i];
                              ^
0_0_21650284_27901.cpp:60:3: error: 'len' was not declared in this scope
   len[i]=preStr[i].length();
   ^
0_0_21650284_27901.cpp:60:10: error: 'preStr' was not declared in this scope
   len[i]=preStr[i].length();
          ^
0_0_21650284_27901.cpp:61:3: error: 'pre' was not declared in this scope
   pre[i]=suf[i]=i;
   ^
0_0_21650284_27901.cpp:61:10: error: 'suf' was not declared in this scope
   pre[i]=suf[i]=i;
          ^
0_0_21650284_27901.cpp:62:3: error: 'sufStr' was not declared in this scope
   sufStr[i]=preStr[i];
   ^
0_0_21650284_27901.cpp:63:58: error: 'lim' was not declared in this scope
   for (int j=0;j<(len[i]-1)/2;j++) swap(sufStr[j],sufStr[lim-j]);
                                                          ^
0_0_21650284_27901.cpp:66:8: error: 'preQey' was not declared in this scope
   cin>>preQey[i]>>sufQey[i];
        ^
0_0_21650284_27901.cpp:66:19: error: 'sufQey' was not declared in this scope
   cin>>preQey[i]>>sufQey[i];
                   ^
0_0_21650284_27901.cpp:67:3: error: 'qeyLen' was not declared in this scope
   qeyLen[i]=preQey[i].length()+sufQey[i].length();
   ^
0_0_21650284_27901.cpp:68:3: error: 'qeyIdx' was not declared in this scope
   qeyIdx[i]=i;
   ^
0_0_21650284_27901.cpp:72:9: error: 'root' was not declared in this scope
  memset(root,0,sizeof(root));
         ^
0_0_21650284_27901.cpp:73:7: error: 'qeyIdx' was not declared in this scope
  sort(qeyIdx+1,qeyIdx+Q+1,cmpQey);
       ^
0_0_21650284_27901.cpp:74:7: error: 'lenIdx' was not declared in this scope
  sort(lenIdx+1,lenIdx+n+1,cmpLen);
       ^
0_0_21650284_27901.cpp:75:7: error: 'pre' was not declared in this scope
  sort(pre+1,pre+n+1,cmpPre);
       ^
0_0_21650284_27901.cpp:76:7: error: 'suf' was not declared in this scope
  sort(suf+1,suf+n+1,cmpSuf);
       ^
0_0_21650284_27901.cpp: In function 'int main()':
0_0_21650284_27901.cpp:84:2: error: incomplete type 'std::ios {aka std::basic_ios<char>}' used in nested name specifier
  std::ios::sync_with_stdio(false);
  ^
0_0_21650284_27901.cpp:86:11: error: 'cin' was not declared in this scope
  int T=0; cin>>T;
           ^


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-06-27 00:40:12, Gzip enabled