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_36338252_14086.cpp: In function 'void addUndirEdge(const int&, const int&)':
0_0_36338252_14086.cpp:16:15: error: 'addEdge' was not declared in this scope
   addEdge(u, v), addEdge(v, u);
               ^
0_0_36338252_14086.cpp: In function 'void init()':
0_0_36338252_14086.cpp:19:5: error: 'tot' was not declared in this scope
     tot=0;
     ^
0_0_36338252_14086.cpp:21:12: error: 'head' was not declared in this scope
     memset(head,-1,sizeof(head));
            ^
0_0_36338252_14086.cpp: In function 'bool findroad(int)':
0_0_36338252_14086.cpp:24:11: error: 'head' was not declared in this scope
     int i=head[u];
           ^
0_0_36338252_14086.cpp:26:15: error: 'to' was not declared in this scope
         int v=to[i]; i=next1[i];
               ^
0_0_36338252_14086.cpp:26:24: error: 'next1' was not declared in this scope
         int v=to[i]; i=next1[i];
                        ^
0_0_36338252_14086.cpp: In function 'int main()':
0_0_36338252_14086.cpp:39:18: error: 'scanf' was not declared in this scope
     scanf("%d",&T);
                  ^
0_0_36338252_14086.cpp:50:16: error: 'head' was not declared in this scope
             if(head[n]!=-1) {
                ^
0_0_36338252_14086.cpp:56:28: error: 'printf' was not declared in this scope
         printf("%d\n",ans/2);
                            ^


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-23 04:51:18, Gzip enabled