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_37818869_25382.cpp: In function 'void dijkstra()':
0_0_37818869_25382.cpp:47:20: error: invalid initialization of reference of type 'node&' from expression of type 'edge'
   for(node &v : e[u]) {
                    ^
0_0_37818869_25382.cpp:48:8: error: redeclaration of 'int v'
    int v = e[u][z].v, w = e[u][z].w;
        ^
0_0_37818869_25382.cpp:47:13: note: 'node& v' previously declared here
   for(node &v : e[u]) {
             ^
0_0_37818869_25382.cpp:48:17: error: 'z' was not declared in this scope
    int v = e[u][z].v, w = e[u][z].w;
                 ^
0_0_37818869_25382.cpp:50:25: error: 'w' was not declared in this scope
    if(dis[v] > dis[u] + w){
                         ^


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-06 10:26:13, Gzip enabled