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_31060604_2906.cpp:65:20: error: array bound is not an integer constant before ']' token
 edge gcc[num_lis+50];
                    ^
0_0_31060604_2906.cpp:66:18: error: array bound is not an integer constant before ']' token
 int hd[num_lis+50],ct = 0;
                  ^
0_0_31060604_2906.cpp: In function 'void ad(int, int, int)':
0_0_31060604_2906.cpp:70:2: error: 'gcc' was not declared in this scope
  gcc[ct].v  =v;
  ^
0_0_31060604_2906.cpp:72:17: error: 'hd' was not declared in this scope
  gcc[ct].next = hd[x];
                 ^
0_0_31060604_2906.cpp: In function 'void dfs(int, int)':
0_0_31060604_2906.cpp:82:14: error: 'hd' was not declared in this scope
  for(int i = hd[x];i!= -1;i = gcc[i].next)
              ^
0_0_31060604_2906.cpp:82:31: error: 'gcc' was not declared in this scope
  for(int i = hd[x];i!= -1;i = gcc[i].next)
                               ^
0_0_31060604_2906.cpp: In function 'int main()':
0_0_31060604_2906.cpp:129:14: error: 'hd' was not declared in this scope
    head[i] = hd[i] = -1;
              ^


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-10-24 06:28:23, Gzip enabled