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
|