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_26136353_705.cpp: In function 'void addedge(int, int)':
0_0_26136353_705.cpp:51:2: error: 'G' was not declared in this scope
  G[cnt++]=edge(f,s,head[f],head[s]);
  ^
0_0_26136353_705.cpp:51:4: error: 'cnt' was not declared in this scope
  G[cnt++]=edge(f,s,head[f],head[s]);
    ^
0_0_26136353_705.cpp:51:20: error: 'head' was not declared in this scope
  G[cnt++]=edge(f,s,head[f],head[s]);
                    ^
0_0_26136353_705.cpp: In function 'int main()':
0_0_26136353_705.cpp:102:24: error: 'struct edge' has no member named 'size'
    if(flag==true&&G[h].size()>0){
                        ^
0_0_26136353_705.cpp: In function 'void dfs2(int)':
0_0_26136353_705.cpp:140:23: error: 'struct edge' has no member named 'size'
  for(int i=0;i<G[cur].size();i++){
                       ^
0_0_26136353_705.cpp:141:17: error: no match for 'operator[]' (operand types are 'edge' and 'int')
   if(bian[G[cur][i].index]==false){
                 ^
0_0_26136353_705.cpp:142:15: error: no match for 'operator[]' (operand types are 'edge' and 'int')
    bian[G[cur][i].index]=true;
               ^
0_0_26136353_705.cpp:143:15: error: no match for 'operator[]' (operand types are 'edge' and 'int')
    dfs2(G[cur][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-12-02 18:24:32, Gzip enabled