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_18098460_16406.cpp: In function 'bb dfs(int, int)':
0_0_18098460_16406.cpp:77:21: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<II> >::value_type {aka II}' to 'int' in initialization
   int next=G[node][i];
                     ^
0_0_18098460_16406.cpp:79:18: error: request for member 'to' in 'next', which is of non-class type 'int'
   bb go=dfs(next.to,node);
                  ^
0_0_18098460_16406.cpp:80:15: error: request for member 'cost' in 'next', which is of non-class type 'int'
   go.v1-=next.cost,go.v2-=2*next.cost;
               ^
0_0_18098460_16406.cpp:80:34: error: request for member 'cost' in 'next', which is of non-class type 'int'
   go.v1-=next.cost,go.v2-=2*next.cost;
                                  ^


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-29 21:03:55, Gzip enabled