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_38104190_28119.cpp: In function 'void ODT::change(int, int)':
0_0_38104190_28119.cpp:211:10: error: expected unqualified-id before '[' token
     auto [l, r, attr] = *it;
          ^
0_0_38104190_28119.cpp:212:22: error: 'attr' was not declared in this scope
     ll diff = weight[attr] - weight[val];
                      ^
0_0_38104190_28119.cpp:213:12: error: 'l' was not declared in this scope
     modify(l, r, diff);
            ^
0_0_38104190_28119.cpp:213:15: error: 'r' was not declared in this scope
     modify(l, r, diff);
               ^
0_0_38104190_28119.cpp: In function 'void ODT::assign(int, int, int)':
0_0_38104190_28119.cpp:248:14: error: expected unqualified-id before '[' token
         auto [_l, _r, attr] = *it;
              ^
0_0_38104190_28119.cpp:249:26: error: 'attr' was not declared in this scope
         ll diff = weight[attr] - weight[val];
                          ^
0_0_38104190_28119.cpp:250:16: error: '_l' was not declared in this scope
         modify(_l, _r, diff);
                ^
0_0_38104190_28119.cpp:250:20: error: '_r' was not declared in this scope
         modify(_l, _r, diff);
                    ^


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-09-28 01:21:22, Gzip enabled