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_36291773_23271.cpp: In function 'void dfs(int, int)':
0_0_36291773_23271.cpp:25:13: error: request for member 'first' in 'e[first]', which is of non-class type 'int'
     if(e[x].first != fa && e[x].first){
             ^
0_0_36291773_23271.cpp:25:33: error: request for member 'first' in 'e[first]', which is of non-class type 'int'
     if(e[x].first != fa && e[x].first){
                                 ^
0_0_36291773_23271.cpp:26:19: error: request for member 'first' in 'e[first]', which is of non-class type 'int'
      int j = e[x].first;
                   ^
0_0_36291773_23271.cpp:28:12: error: request for member 'first' in 'e[first]', which is of non-class type 'int'
   dfs(e[x].first,x);
            ^
0_0_36291773_23271.cpp:30:15: error: request for member 'second' in 'e[first]', which is of non-class type 'int'
  else if(e[x].second){
               ^
0_0_36291773_23271.cpp:31:16: error: request for member 'second' in 'e[first]', which is of non-class type 'int'
   int j = e[x].second;
                ^
0_0_36291773_23271.cpp:33:12: error: request for member 'second' in 'e[first]', which is of non-class type 'int'
   dfs(e[x].second,x);
            ^


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-25 19:25:09, Gzip enabled