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_39542150_41.cpp: In member function 'void Fenwick::init(int)':
0_0_39542150_41.cpp:14:32: error: 'i' was not declared in this scope
   14 |     void init(int _n){n=_n;rep(i,0,n)a[i]=0;}
      |                                ^
0_0_39542150_41.cpp:14:28: error: 'rep' was not declared in this scope; did you mean 'frexp'?
   14 |     void init(int _n){n=_n;rep(i,0,n)a[i]=0;}
      |                            ^~~
      |                            frexp
0_0_39542150_41.cpp: In function 'void solve()':
0_0_39542150_41.cpp:89:22: error: 'struct Fenwick' has no member named 'sum'
   89 |         ans[id] = tr.sum(in[rt], out[rt]);
      |                      ^~~


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-14 12:44:47, Gzip enabled