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_16468489_13594.cpp: In function 'bool judge(int)':
0_0_16468489_13594.cpp:5:13: error: 'edge' was not declared in this scope
     int len=edge[u].size();
             ^
0_0_16468489_13594.cpp:6:5: error: 'cnt' was not declared in this scope
     cnt[vis[u]-1]++;
     ^
0_0_16468489_13594.cpp:6:9: error: 'vis' was not declared in this scope
     cnt[vis[u]-1]++;
         ^
0_0_16468489_13594.cpp: In function 'int dfs(int, int, int)':
0_0_16468489_13594.cpp:24:5: error: 'vis' was not declared in this scope
  if(vis[x]==-1)val[x]=val;
     ^
0_0_16468489_13594.cpp:24:21: error: invalid types 'int[int]' for array subscript
  if(vis[x]==-1)val[x]=val;
                     ^
0_0_16468489_13594.cpp:26:12: error: 'head' was not declared in this scope
  for(int i=head[x];i!=-1;i=edge[i].next)
            ^
0_0_16468489_13594.cpp:26:28: error: 'edge' was not declared in this scope
  for(int i=head[x];i!=-1;i=edge[i].next)
                            ^
0_0_16468489_13594.cpp:29:6: error: 'vis' was not declared in this scope
   if(vis[x]==dfs(v,x,vis[x]^1))
      ^
0_0_16468489_13594.cpp:30:4: error: 'hasc' was not declared in this scope
    hasc=1;
    ^
0_0_16468489_13594.cpp:32:9: error: 'vis' was not declared in this scope
  return vis[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-26 08:45:46, Gzip enabled