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_26469780_3822.cpp:10:1: error: 'vector' does not name a type
 vector<int> A,B;
 ^
0_0_26469780_3822.cpp: In function 'int main()':
0_0_26469780_3822.cpp:1:36: error: 'stdin' was not declared in this scope
 #define FRER() freopen("i.txt","r",stdin)
                                    ^
0_0_26469780_3822.cpp:58:5: note: in expansion of macro 'FRER'
     FRER();
     ^
0_0_26469780_3822.cpp:1:41: error: 'freopen' was not declared in this scope
 #define FRER() freopen("i.txt","r",stdin)
                                         ^
0_0_26469780_3822.cpp:58:5: note: in expansion of macro 'FRER'
     FRER();
     ^
0_0_26469780_3822.cpp:59:29: error: 'scanf' was not declared in this scope
     while(scanf("%d%d",&n,&Q)==2)
                             ^
0_0_26469780_3822.cpp:61:35: error: 'memset' was not declared in this scope
         memset(head,-1,sizeof head);
                                   ^
0_0_26469780_3822.cpp:75:13: error: 'A' was not declared in this scope
             A.clear();
             ^
0_0_26469780_3822.cpp:76:13: error: 'B' was not declared in this scope
             B.clear();
             ^
0_0_26469780_3822.cpp:92:70: error: 'sort' was not declared in this scope
             sort(A.begin(),A.end(),[](int a,int b){return o[a]<o[b];});
                                                                      ^
0_0_26469780_3822.cpp:96:57: error: 'lower_bound' was not declared in this scope
                 int j=lower_bound(A.begin(),A.end(),B[i])-A.begin();
                                                         ^
0_0_26469780_3822.cpp:97:57: error: 'max' was not declared in this scope
                 if(j<A.size())ans=max(ans,lca(B[i],A[j]));
                                                         ^
0_0_26469780_3822.cpp:98:52: error: 'max' was not declared in this scope
                 if(j>0)ans=max(ans,lca(B[i],A[j-1]));
                                                    ^
0_0_26469780_3822.cpp:100:30: error: 'printf' was not declared in this scope
             printf("%d\n",ans);
                              ^


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-16 16:22:54, Gzip enabled