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_38403470_27707.cpp: In function 'void modify(int&, int, int, int, int, int, ll)':
0_0_38403470_27707.cpp:67:8: error: expected unqualified-id before '[' token
  auto &[ls, rs, sum, lazy]=tr[root];
        ^
0_0_38403470_27707.cpp:67:8: error: expected initializer before '[' token
0_0_38403470_27707.cpp:68:2: error: 'sum' was not declared in this scope
  sum+=1ll*getInterLen(l, r, L, R)*d;
  ^
0_0_38403470_27707.cpp:71:3: error: 'lazy' was not declared in this scope
   lazy+=d;
   ^
0_0_38403470_27707.cpp:75:19: error: 'ls' was not declared in this scope
  if(L<=mid)modify(ls, tr[ori].ls, l, mid, L, R, d);
                   ^
0_0_38403470_27707.cpp:76:18: error: 'rs' was not declared in this scope
  if(R>mid)modify(rs, tr[ori].rs, mid+1, r, L, R, d);
                  ^
0_0_38403470_27707.cpp: In function 'll query(int, int, int, int, int, ll)':
0_0_38403470_27707.cpp:80:7: error: expected unqualified-id before '[' token
  auto [ls, rs, sum, lazy]=tr[root];
       ^
0_0_38403470_27707.cpp:81:23: error: 'sum' was not declared in this scope
  if(L<=l&&r<=R)return sum+totLazy*(r-l+1);
                       ^
0_0_38403470_27707.cpp:84:23: error: 'ls' was not declared in this scope
  if(L<=mid)ans+=query(ls, l, mid, L, R, totLazy+lazy);
                       ^
0_0_38403470_27707.cpp:84:49: error: 'lazy' was not declared in this scope
  if(L<=mid)ans+=query(ls, l, mid, L, R, totLazy+lazy);
                                                 ^
0_0_38403470_27707.cpp:85:22: error: 'rs' was not declared in this scope
  if(R>mid)ans+=query(rs, mid+1, r, L, R, totLazy+lazy);
                      ^
0_0_38403470_27707.cpp:85:50: error: 'lazy' was not declared in this scope
  if(R>mid)ans+=query(rs, mid+1, r, L, R, totLazy+lazy);
                                                  ^


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-16 19:12:08, Gzip enabled