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_31758584_27110.cpp:19:11: error: array bound is not an integer constant before ']' token
 node e[2*n];
           ^
0_0_31758584_27110.cpp: In function 'void add(int, int)':
0_0_31758584_27110.cpp:21:2: error: 'e' was not declared in this scope
  e[idx].u=a;
  ^
0_0_31758584_27110.cpp: In function 'void dfs(int)':
0_0_31758584_27110.cpp:32:21: error: 'e' was not declared in this scope
  for(i=h[u];i!=-1;i=e[i].to)
                     ^
0_0_31758584_27110.cpp: In function 'int dfs1(int, int, int)':
0_0_31758584_27110.cpp:41:21: error: 'e' was not declared in this scope
  for(i=h[u];i!=-1;i=e[i].to){
                     ^
0_0_31758584_27110.cpp: In function 'int dfs2(int, int)':
0_0_31758584_27110.cpp:62:21: error: 'e' was not declared in this scope
  for(i=h[u];i!=-1;i=e[i].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 17:55:19, Gzip enabled