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_37998431_4514.cpp:4:1: error: 'vector' does not name a type
 vector<int> vec[N];
 ^
0_0_37998431_4514.cpp: In function 'void init(int)':
0_0_37998431_4514.cpp:24:22: error: 'memset' was not declared in this scope
  memset(f,0,sizeof(f));
                      ^
0_0_37998431_4514.cpp: In function 'int getlca(int, int)':
0_0_37998431_4514.cpp:48:24: error: 'swap' was not declared in this scope
  if(d[x]>d[y]) swap(x,y);
                        ^
0_0_37998431_4514.cpp: In function 'void dp(int, int)':
0_0_37998431_4514.cpp:62:13: error: 'vec' was not declared in this scope
  for(auto y:vec[x])
             ^
0_0_37998431_4514.cpp: In function 'void clear(int)':
0_0_37998431_4514.cpp:77:13: error: 'vec' was not declared in this scope
  for(auto y:vec[x])
             ^
0_0_37998431_4514.cpp: In function 'void build(int)':
0_0_37998431_4514.cpp:85:22: error: 'sort' was not declared in this scope
  sort(a+1,a+cnt+1,cmp);
                      ^
0_0_37998431_4514.cpp:86:24: error: 'unique' was not declared in this scope
  cnt=unique(a+1,a+cnt+1)-(a+1);
                        ^
0_0_37998431_4514.cpp:88:2: error: 'vec' was not declared in this scope
  vec[1].clear();
  ^
0_0_37998431_4514.cpp: In function 'int main()':
0_0_37998431_4514.cpp:130:2: error: 'cin' was not declared in this scope
  cin>>T;
  ^
0_0_37998431_4514.cpp:156:4: error: 'cout' was not declared in this scope
    cout<<ans<<endl;
    ^
0_0_37998431_4514.cpp:156:15: error: 'endl' was not declared in this scope
    cout<<ans<<endl;
               ^


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-22 20:55:22, Gzip enabled