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_29969513_23254.cpp:23:7: error: expected unqualified-id before 'int'
  part(int from,int to)
       ^
0_0_29969513_23254.cpp:23:7: error: expected ')' before 'int'
0_0_29969513_23254.cpp: In function 'void dfs1(int, int, int, int)':
0_0_29969513_23254.cpp:38:6: error: 'i' was not declared in this scope
  for(i=0;i<v[pos].size();i++)
      ^
0_0_29969513_23254.cpp:38:19: error: '__gnu_cxx::__alloc_traits<std::allocator<part> >::value_type' has no member named 'size'
  for(i=0;i<v[pos].size();i++)
                   ^
0_0_29969513_23254.cpp: In function 'int getlca(int, int)':
0_0_29969513_23254.cpp:54:5: error: 'f' was not declared in this scope
   x=f[x][i];
     ^
0_0_29969513_23254.cpp:62:6: error: 'f' was not declared in this scope
   if(f[x][i]!=f[y][i])
      ^
0_0_29969513_23254.cpp: In function 'int dfs2(int, int)':
0_0_29969513_23254.cpp:72:23: error: '__gnu_cxx::__alloc_traits<std::allocator<part> >::value_type' has no member named 'size'
  for(int i=0;i<v[pos].size();i++)
                       ^
0_0_29969513_23254.cpp:74:16: error: no match for 'operator[]' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<part> >::value_type {aka part}' and 'int')
   int to=v[pos][i];
                ^
0_0_29969513_23254.cpp: In function 'int main()':
0_0_29969513_23254.cpp:91:23: error: 'l' was not declared in this scope
  scanf("%d %d",&n,&m);l
                       ^
0_0_29969513_23254.cpp:92:20: error: expected ';' before ')' token
  for(i=1;i<=n-1;i++)
                    ^


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-29 15:35:45, Gzip enabled