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_16211199_14349.cpp:5:1: error: 'vector' does not name a type
 vector <int> ede[sup];
 ^
0_0_16211199_14349.cpp: In function 'void dfs(int)':
0_0_16211199_14349.cpp:12:21: error: 'ede' was not declared in this scope
  for(int i = 0; i < ede[x].size(); ++ i) if(!vis[ede[x][i]])
                     ^
0_0_16211199_14349.cpp: In function 'void init_RMQ()':
0_0_16211199_14349.cpp:29:31: error: 'log' was not declared in this scope
  int k=(int) ( log((double)cnt) / log(2.0) );
                               ^
0_0_16211199_14349.cpp: In function 'void DFS(int, int)':
0_0_16211199_14349.cpp:47:21: error: 'ede' was not declared in this scope
  for(int i = 0; i < ede[v].size(); ++ i)  if(!vis[ede[v][i]])
                     ^
0_0_16211199_14349.cpp: In function 'int RMQ(int, int)':
0_0_16211199_14349.cpp:57:34: error: 'log' was not declared in this scope
  int k=(int) (log((double)ed-st+1) / log(2.0));//鎵惧埌鍒嗙晫鐐�
                                  ^
0_0_16211199_14349.cpp: In function 'bool run(int, int, int, int&)':
0_0_16211199_14349.cpp:86:29: error: 'sort' was not declared in this scope
  sort(res + 1, res + cnt + 1);
                             ^
0_0_16211199_14349.cpp: In function 'void show(int)':
0_0_16211199_14349.cpp:93:3: error: 'cout' was not declared in this scope
   cout<<i<<"鐨勫墠椹� "<<pre[i]<<endl;
   ^
0_0_16211199_14349.cpp:93:34: error: 'endl' was not declared in this scope
   cout<<i<<"鐨勫墠椹� "<<pre[i]<<endl;
                                  ^
0_0_16211199_14349.cpp: In function 'int main()':
0_0_16211199_14349.cpp:100:23: error: 'scanf' was not declared in this scope
  scanf("%d %d", &N, &Q);
                       ^
0_0_16211199_14349.cpp:105:3: error: 'ede' was not declared in this scope
   ede[u].push_back(v);
   ^
0_0_16211199_14349.cpp:111:32: error: 'memset' was not declared in this scope
  memset(vis, false, sizeof(vis));
                                ^
0_0_16211199_14349.cpp:122:46: error: 'printf' was not declared in this scope
    if(run(lca, u, v, ans)) printf("%d/n", ans);
                                              ^
0_0_16211199_14349.cpp:123:33: error: 'puts' was not declared in this scope
    else  puts("invalid request!");
                                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-04-06 09:06:01, Gzip enabled