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_38749537_18962.cpp: In function 'void dfs(long long int, long long int)':
0_0_38749537_18962.cpp:41:34: error: 'v' was not declared in this scope
   41 |     for(int i=heads[x];i!=-1;i=s[v].next)
      |                                  ^
0_0_38749537_18962.cpp:43:26: error: request for member 'to' in 'heads[i]', which is of non-class type 'long long int'
   43 |           int v=heads[i].to;
      |                          ^~
0_0_38749537_18962.cpp:47:13: error: 'la' was not declared in this scope; did you mean 'fa'?
   47 |             la[cnt]=v;
      |             ^~
      |             fa
0_0_38749537_18962.cpp: In function 'void solve()':
0_0_38749537_18962.cpp:85:6: error: 'la' was not declared in this scope; did you mean 'fa'?
   85 |      la[0]=1;
      |      ^~
      |      fa
0_0_38749537_18962.cpp:106:29: error: request for member 'to' in 'heade[i]', which is of non-class type 'long long int'
  106 |              int v=heade[i].to;
      |                             ^~
0_0_38749537_18962.cpp:113:36: error: request for member 'to' in 'headg[j]', which is of non-class type 'long long int'
  113 |                     int y=headg[j].to;
      |                                    ^~


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-07-03 07:04:26, Gzip enabled