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_17462547_6013.cpp:6:46: error: expected initializer before 'tot'
 int n,a[N],b[N],c[N<<1],A[N<<1],B[N<<1],st[N]tot,cnt,len,casename=1;
                                              ^
0_0_17462547_6013.cpp: In function 'void add(long long int*, long long int, long long int)':
0_0_17462547_6013.cpp:16:11: error: 'len' was not declared in this scope
  while(p<=len){
           ^
0_0_17462547_6013.cpp: In function 'int main()':
0_0_17462547_6013.cpp:24:19: error: 'casename' was not declared in this scope
   cout<<"Case #"<<casename++<<":"<<endl;
                   ^
0_0_17462547_6013.cpp:25:3: error: 'tot' was not declared in this scope
   tot=cnt=0;
   ^
0_0_17462547_6013.cpp:25:7: error: 'cnt' was not declared in this scope
   tot=cnt=0;
       ^
0_0_17462547_6013.cpp:34:5: error: 'st' was not declared in this scope
     st[cnt]=b[i];
     ^
0_0_17462547_6013.cpp:38:3: error: 'len' was not declared in this scope
   len=unique(c+1,c+1+tot)-c-1;
   ^
0_0_17462547_6013.cpp:50:35: error: 'st' was not declared in this scope
     int x=lower_bound(c+1,c+1+len,st[b[i]])-c;
                                   ^


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-26 16:41:37, Gzip enabled