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_37769689_21336.cpp:19:103: error: 'std::index_sequence' has not been declared
 template<class Tuple, std::size_t... Is> void print_tuple_impl(std::ostream &os, const Tuple &t, std::index_sequence<Is...>) { ((os << (Is == 0? "" : ", ") << std::get<Is>(t)), ...); }
                                                                                                       ^
0_0_37769689_21336.cpp:19:117: error: expected ',' or '...' before '<' token
 template<class Tuple, std::size_t... Is> void print_tuple_impl(std::ostream &os, const Tuple &t, std::index_sequence<Is...>) { ((os << (Is == 0? "" : ", ") << std::get<Is>(t)), ...); }
                                                                                                                     ^
0_0_37769689_21336.cpp: In function 'void print_tuple_impl(std::ostream&, const Tuple&, int)':
0_0_37769689_21336.cpp:19:178: error: expected primary-expression before '...' token
 template<class Tuple, std::size_t... Is> void print_tuple_impl(std::ostream &os, const Tuple &t, std::index_sequence<Is...>) { ((os << (Is == 0? "" : ", ") << std::get<Is>(t)), ...); }
                                                                                                                                                                                  ^
0_0_37769689_21336.cpp:19:178: error: expected ')' before '...' token
0_0_37769689_21336.cpp:19:182: error: parameter packs not expanded with '...':
 template<class Tuple, std::size_t... Is> void print_tuple_impl(std::ostream &os, const Tuple &t, std::index_sequence<Is...>) { ((os << (Is == 0? "" : ", ") << std::get<Is>(t)), ...); }
                                                                                                                                                                                      ^
0_0_37769689_21336.cpp:19:182: note:         'Is'
0_0_37769689_21336.cpp: In function 'std::ostream& operator<<(std::ostream&, const std::tuple<_Elements ...>&)':
0_0_37769689_21336.cpp:20:135: error: 'index_sequence_for' is not a member of 'std'
 template<class... Args> std::ostream &operator<<(std::ostream &os, const std::tuple<Args...> &t) { os << "("; print_tuple_impl(os, t, std::index_sequence_for<Args...>{}); return os << ")"; }
                                                                                                                                       ^
0_0_37769689_21336.cpp:20:163: error: expected primary-expression before '...' token
 template<class... Args> std::ostream &operator<<(std::ostream &os, const std::tuple<Args...> &t) { os << "("; print_tuple_impl(os, t, std::index_sequence_for<Args...>{}); return os << ")"; }
                                                                                                                                                                   ^
0_0_37769689_21336.cpp: In lambda function:
0_0_37769689_21336.cpp:46:14: error: expected unqualified-id before '[' token
         auto [uv, ep] = E[id];
              ^
0_0_37769689_21336.cpp:47:12: error: 'uv' was not declared in this scope
         g2[uv.first].push_back({ep.second, uv.second});
            ^
0_0_37769689_21336.cpp:47:33: error: 'ep' was not declared in this scope
         g2[uv.first].push_back({ep.second, uv.second});
                                 ^
0_0_37769689_21336.cpp: In lambda function:
0_0_37769689_21336.cpp:55:19: error: expected unqualified-id before '[' token
         for (auto [ei, to]: g1[s]) {
                   ^
0_0_37769689_21336.cpp:55:19: error: expected ';' before '[' token
0_0_37769689_21336.cpp:55:20: error: 'ei' was not declared in this scope
         for (auto [ei, to]: g1[s]) {
                    ^
0_0_37769689_21336.cpp:55:24: error: 'to' was not declared in this scope
         for (auto [ei, to]: g1[s]) {
                        ^
0_0_37769689_21336.cpp: In lambda function:
0_0_37769689_21336.cpp:55:27: error: expected '{' before ':' token
         for (auto [ei, to]: g1[s]) {
                           ^
0_0_37769689_21336.cpp: In lambda function:
0_0_37769689_21336.cpp:55:27: error: expected ';' before ':' token
0_0_37769689_21336.cpp:55:27: error: expected primary-expression before ':' token
0_0_37769689_21336.cpp:55:27: error: expected ')' before ':' token
0_0_37769689_21336.cpp:55:27: error: expected primary-expression before ':' token
0_0_37769689_21336.cpp:59:18: error: expected unqualified-id before '[' token
             auto [dd, ei] = Q.top();
                  ^
0_0_37769689_21336.cpp:61:23: error: 'ei' was not declared in this scope
             int u = E[ei].first.second;
                       ^
0_0_37769689_21336.cpp:62:44: error: 'dd' was not declared in this scope
             if (dis[u] == -1 || dis[u] == -dd) addg2(ei);
                                            ^
0_0_37769689_21336.cpp:65:23: error: 'dd' was not declared in this scope
             dis[u] = -dd;
                       ^
0_0_37769689_21336.cpp:67:23: error: expected unqualified-id before '[' token
             for (auto [toei, to]: g1[u]) {
                       ^
0_0_37769689_21336.cpp:67:23: error: expected ';' before '[' token
0_0_37769689_21336.cpp:67:24: error: 'toei' was not declared in this scope
             for (auto [toei, to]: g1[u]) {
                        ^
0_0_37769689_21336.cpp:67:30: error: 'to' was not declared in this scope
             for (auto [toei, to]: g1[u]) {
                              ^
0_0_37769689_21336.cpp: In lambda function:
0_0_37769689_21336.cpp:67:33: error: expected '{' before ':' token
             for (auto [toei, to]: g1[u]) {
                                 ^
0_0_37769689_21336.cpp: In lambda function:
0_0_37769689_21336.cpp:67:33: error: expected ';' before ':' token
0_0_37769689_21336.cpp:67:33: error: expected primary-expression before ':' token
0_0_37769689_21336.cpp:67:33: error: expected ')' before ':' token
0_0_37769689_21336.cpp:67:33: error: expected primary-expression before ':' token
0_0_37769689_21336.cpp: In lambda function:
0_0_37769689_21336.cpp:81:19: error: expected unqualified-id before '[' token
         for (auto [l, to]: g2[u]) {
                   ^
0_0_37769689_21336.cpp:81:19: error: expected ';' before '[' token
0_0_37769689_21336.cpp:81:20: error: 'l' was not declared in this scope
         for (auto [l, to]: g2[u]) {
                    ^
0_0_37769689_21336.cpp:81:23: error: 'to' was not declared in this scope
         for (auto [l, to]: g2[u]) {
                       ^
0_0_37769689_21336.cpp: In lambda function:
0_0_37769689_21336.cpp:81:26: error: expected '{' before ':' token
         for (auto [l, to]: g2[u]) {
                          ^
0_0_37769689_21336.cpp: In lambda function:
0_0_37769689_21336.cpp:81:26: error: expected ';' before ':' token
0_0_37769689_21336.cpp:81:26: error: expected primary-expression before ':' token
0_0_37769689_21336.cpp:81:26: error: expected ')' before ':' token
0_0_37769689_21336.cpp:81:26: error: expected primary-expression before ':' token
0_0_37769689_21336.cpp:84:19: error: expected unqualified-id before '[' token
         for (auto [l, to]: g2[u]) {
                   ^
0_0_37769689_21336.cpp:84:19: error: expected ';' before '[' token
0_0_37769689_21336.cpp:84:20: error: 'l' was not declared in this scope
         for (auto [l, to]: g2[u]) {
                    ^
0_0_37769689_21336.cpp:84:23: error: 'to' was not declared in this scope
         for (auto [l, to]: g2[u]) {
                       ^
0_0_37769689_21336.cpp: In lambda function:
0_0_37769689_21336.cpp:84:26: error: expected '{' before ':' token
         for (auto [l, to]: g2[u]) {
                          ^
0_0_37769689_21336.cpp: In lambda function:
0_0_37769689_21336.cpp:84:26: error: expected ';' before ':' token
0_0_37769689_21336.cpp:84:26: error: expected primary-expression before ':' token
0_0_37769689_21336.cpp:84:26: error: expected ')' before ':' token
0_0_37769689_21336.cpp:84:26: error: expected primary-expression before ':' token


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-07 17:59:50, Gzip enabled