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_39175065_15117.cpp: In function 'void add(int, int)':
0_0_39175065_15117.cpp:18:43: error: 'lowbit' was not declared in this scope
   18 | void add(int x,int k){for(int i=x;i<=n;i+=lowbit(i)) c[i]+=k;}
      |                                           ^~~~~~
0_0_39175065_15117.cpp: In function 'int query(int)':
0_0_39175065_15117.cpp:21:20: error: 'lowbit' was not declared in this scope
   21 |   for(int i=x;i;i^=lowbit(i)) ans+=c[i];
      |                    ^~~~~~
0_0_39175065_15117.cpp: In function 'void pushup(int)':
0_0_39175065_15117.cpp:28:41: error: 'lc' was not declared in this scope; did you mean 'c'?
   28 | void pushup(int now){tr[now].sum=min(tr[lc].sum,tr[rc].sum);}
      |                                         ^~
      |                                         c
0_0_39175065_15117.cpp:28:52: error: 'rc' was not declared in this scope; did you mean 'c'?
   28 | void pushup(int now){tr[now].sum=min(tr[lc].sum,tr[rc].sum);}
      |                                                    ^~
      |                                                    c
0_0_39175065_15117.cpp: In function 'void pushdown(int, int, int)':
0_0_39175065_15117.cpp:32:7: error: 'lc' was not declared in this scope; did you mean 'l'?
   32 |   upd(lc,l,mid,tr[now].add);
      |       ^~
      |       l
0_0_39175065_15117.cpp:33:7: error: 'rc' was not declared in this scope; did you mean 'r'?
   33 |   upd(rc,mid+1,r,tr[now].add);
      |       ^~
      |       r
0_0_39175065_15117.cpp: In function 'void build(int, int, int)':
0_0_39175065_15117.cpp:43:9: error: 'lc' was not declared in this scope; did you mean 'l'?
   43 |   build(lc,l,mid);
      |         ^~
      |         l
0_0_39175065_15117.cpp:44:9: error: 'rc' was not declared in this scope; did you mean 'r'?
   44 |   build(rc,mid+1,r);
      |         ^~
      |         r
0_0_39175065_15117.cpp: In function 'void modify(int, int, int, int, int, int)':
0_0_39175065_15117.cpp:51:22: error: 'lc' was not declared in this scope; did you mean 'l'?
   51 |   if(ql<=mid) modify(lc,l,mid,ql,qr,v);
      |                      ^~
      |                      l
0_0_39175065_15117.cpp:52:21: error: 'rc' was not declared in this scope; did you mean 'r'?
   52 |   if(qr>mid) modify(rc,mid+1,r,ql,qr,v);
      |                     ^~
      |                     r


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-06-17 10:23:13, Gzip enabled