0_0_38806933_4397.cpp: In function 'void solve()':
0_0_38806933_4397.cpp:150:8: error: 'struct BIT<long long int>' has no member named 'build'
150 | tr.build(1, 1, n);
| ^~~~~
0_0_38806933_4397.cpp:170:32: error: 'struct BIT<long long int>' has no member named 'update'
170 | if (pos[i][1] != 1) tr.update(1, 1, n, 1, pos[i][1] - 1, x[id[pos[i][1]]], -1);
| ^~~~~~
0_0_38806933_4397.cpp:171:37: error: 'struct BIT<long long int>' has no member named 'update'
171 | if (pos[i][tot[i]] != n) tr.update(1, 1, n, pos[i][tot[i]] + 1, n, -x[id[pos[i][tot[i]]]], 1);
| ^~~~~~
0_0_38806933_4397.cpp: In instantiation of 'T BIT<T>::addrange(int, int, T) [with T = long long int]':
0_0_38806933_4397.cpp:163:24: required from here
0_0_38806933_4397.cpp:98:27: error: return-statement with no value, in function returning 'long long int' [-fpermissive]
98 | if(l > r) return ;
| ^~~~~~
|