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_37505720_18494.cpp:39:52: error: 'Dijkstra' function uses 'auto' type specifier without trailing return type
 template<typename T>auto Dijkstra(Graph<T>& g,int s){
                                                    ^
0_0_37505720_18494.cpp:39:52: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_37505720_18494.cpp: In function 'auto Dijkstra(Graph<T>&, int)':
0_0_37505720_18494.cpp:50:18: error: expected unqualified-id before '[' token
             auto [v,w]=g.e[i];
                  ^
0_0_37505720_18494.cpp:51:20: error: 'v' was not declared in this scope
             if(dis[v]<=dis[u]+w)continue;
                    ^
0_0_37505720_18494.cpp:51:31: error: 'w' was not declared in this scope
             if(dis[v]<=dis[u]+w)continue;
                               ^
0_0_37505720_18494.cpp:52:17: error: 'v' was not declared in this scope
             dis[v]=dis[u]+w;
                 ^
0_0_37505720_18494.cpp:52:27: error: 'w' was not declared in this scope
             dis[v]=dis[u]+w;
                           ^
0_0_37505720_18494.cpp: In lambda function:
0_0_37505720_18494.cpp:70:14: error: expected unqualified-id before '[' token
         auto [path,res]=Dijkstra(g,1);
              ^
0_0_37505720_18494.cpp:72:25: error: 'res' was not declared in this scope
             ans=max(ans,res);
                         ^
0_0_37505720_18494.cpp:76:20: error: 'path' was not declared in this scope
             int i=(path[u]);
                    ^


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 05:15:33, Gzip enabled