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_37766028_24256.cpp: In function 'void printarg(const T& ...)':
0_0_37766028_24256.cpp:15:59: error: expected primary-expression before '...' token
 template<typename... T> void printarg(const T&... args) {(..., [](const auto& arg) {cout << arg << " ";} (args));}
                                                           ^
0_0_37766028_24256.cpp:15:59: error: expected ')' before '...' token
0_0_37766028_24256.cpp: In function 'void spfa(int, int)':
0_0_37766028_24256.cpp:35:15: error: expected unqualified-id before '[' token
         auto& [ue, up] = dis[u];
               ^
0_0_37766028_24256.cpp:35:15: error: expected initializer before '[' token
0_0_37766028_24256.cpp:36:20: error: expected unqualified-id before '[' token
         for (auto& [v, e, p] : g[u]) {
                    ^
0_0_37766028_24256.cpp:36:20: error: expected ';' before '[' token
0_0_37766028_24256.cpp:36:21: error: 'v' was not declared in this scope
         for (auto& [v, e, p] : g[u]) {
                     ^
0_0_37766028_24256.cpp:36:24: error: 'e' was not declared in this scope
         for (auto& [v, e, p] : g[u]) {
                        ^
0_0_37766028_24256.cpp:36:27: error: 'p' was not declared in this scope
         for (auto& [v, e, p] : g[u]) {
                           ^
0_0_37766028_24256.cpp: In lambda function:
0_0_37766028_24256.cpp:36:30: error: expected '{' before ':' token
         for (auto& [v, e, p] : g[u]) {
                              ^
0_0_37766028_24256.cpp: In function 'void spfa(int, int)':
0_0_37766028_24256.cpp:36:30: error: expected ';' before ':' token
0_0_37766028_24256.cpp:36:30: error: expected primary-expression before ':' token
0_0_37766028_24256.cpp:36:30: error: expected ')' before ':' token
0_0_37766028_24256.cpp:36:30: error: expected primary-expression before ':' token
0_0_37766028_24256.cpp:46:11: error: expected unqualified-id before '[' token
     auto& [k1, k2] = dis[t];
           ^
0_0_37766028_24256.cpp:46:11: error: expected initializer before '[' token
0_0_37766028_24256.cpp:47:13: error: 'k1' was not declared in this scope
     cout << k1 << " " << k2 << endl;
             ^
0_0_37766028_24256.cpp:47:26: error: 'k2' was not declared in this scope
     cout << k1 << " " << k2 << endl;
                          ^
0_0_37766028_24256.cpp: In function 'void solve(int)':
0_0_37766028_24256.cpp:53:11: error: expected unqualified-id before '[' token
     auto& [v, e, p] = E;
           ^
0_0_37766028_24256.cpp:53:11: error: expected initializer before '[' token
0_0_37766028_24256.cpp:57:32: error: 'v' was not declared in this scope
         scanf("%d%d%d%d", &u, &v, &e, &p);
                                ^
0_0_37766028_24256.cpp:57:36: error: 'e' was not declared in this scope
         scanf("%d%d%d%d", &u, &v, &e, &p);
                                    ^
0_0_37766028_24256.cpp:57:40: error: 'p' was not declared in this scope
         scanf("%d%d%d%d", &u, &v, &e, &p);
                                        ^


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-07-05 00:02:54, Gzip enabled