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_38514296_26698.cpp: In member function 'void rollback_dsu::rollback()':
0_0_38514296_26698.cpp:25:14: error: expected unqualified-id before '[' token
         auto [v, val] = history.top();
              ^
0_0_38514296_26698.cpp:26:28: error: 'v' was not declared in this scope
         auto u = pa_or_siz[v];
                            ^
0_0_38514296_26698.cpp:27:24: error: 'val' was not declared in this scope
         pa_or_siz[v] = val;
                        ^
0_0_38514296_26698.cpp: In member function 'std::pair<Cost, std::vector<int> > directed_mst<Cost>::get(int, bool)':
0_0_38514296_26698.cpp:91:23: error: expected unqualified-id before '[' token
                 auto &[u, comp] = *it;
                       ^
0_0_38514296_26698.cpp:91:23: error: expected initializer before '[' token
0_0_38514296_26698.cpp:92:47: error: 'comp' was not declared in this scope
                 auto count = static_cast<int>(comp.size()) - 1;
                                               ^
0_0_38514296_26698.cpp:94:34: error: 'u' was not declared in this scope
                 auto inedge = in[u];
                                  ^
0_0_38514296_26698.cpp:95:31: error: range-based 'for' expression of type 'auto' has incomplete type
                 for (auto e : comp) {
                               ^
0_0_38514296_26698.cpp: In member function 'void directed_mst<Cost>::push(int)':
0_0_38514296_26698.cpp:111:30: error: expected ')' before ';' token
         if (auto l = left_[u]; ~l) lazy_[l] += lazy_[u];
                              ^
0_0_38514296_26698.cpp:111:33: error: 'l' was not declared in this scope
         if (auto l = left_[u]; ~l) lazy_[l] += lazy_[u];
                                 ^
0_0_38514296_26698.cpp:112:31: error: expected ')' before ';' token
         if (auto r = right_[u]; ~r) lazy_[r] += lazy_[u];
                               ^
0_0_38514296_26698.cpp:112:34: error: 'r' was not declared in this scope
         if (auto r = right_[u]; ~r) lazy_[r] += lazy_[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-12-25 02:18:06, Gzip enabled