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_32291490_443.cpp: In function 'void dp(int)':
0_0_32291490_443.cpp:2:3: error: 'v' was not declared in this scope
   v[x]=1; 
   ^
0_0_32291490_443.cpp:3:22: error: 'head' was not declared in this scope
   for(register int i=head[x];i;i=nxt[i]){
                      ^
0_0_32291490_443.cpp:3:34: error: 'nxt' was not declared in this scope
   for(register int i=head[x];i;i=nxt[i]){
                                  ^
0_0_32291490_443.cpp:4:13: error: 'ver' was not declared in this scope
       int y=ver[i];
             ^
0_0_32291490_443.cpp:7:7: error: 'ans' was not declared in this scope
       ans=max(ans,d[x]+d[y]+edge[i]);
       ^
0_0_32291490_443.cpp:7:19: error: 'd' was not declared in this scope
       ans=max(ans,d[x]+d[y]+edge[i]);
                   ^
0_0_32291490_443.cpp:7:29: error: 'edge' was not declared in this scope
       ans=max(ans,d[x]+d[y]+edge[i]);
                             ^
0_0_32291490_443.cpp:7:36: error: 'max' was not declared in this scope
       ans=max(ans,d[x]+d[y]+edge[i]);
                                    ^


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-27 01:20:14, Gzip enabled