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_18237107_12618.cpp: In function 'void dfs(int)':
0_0_18237107_12618.cpp:67:59: error: 'h' was not declared in this scope
     if (a[u]) res = res + bit.sum(bit.n) - bit.sum(get_id(h / a[u]) - 1);
                                                           ^
0_0_18237107_12618.cpp:69:20: error: no matching function for call to 'BIT::update(long long int&)'
     bit.update(a[u]);
                    ^
0_0_18237107_12618.cpp:69:20: note: candidate is:
0_0_18237107_12618.cpp:38:10: note: void BIT::update(int, int)
     void update(int x, int d) {
          ^
0_0_18237107_12618.cpp:38:10: note:   candidate expects 2 arguments, 1 provided


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-27 10:20:47, Gzip enabled