art.cpp: In constructor 'BIT::BIT(int)':
art.cpp:20:17: error: 'bit' was not declared in this scope
20 | bit.resize(n + 1, 0);
| ^~~
art.cpp: In member function 'void BIT::update(int, int)':
art.cpp:23:46: error: 'bit' was not declared in this scope
23 | for(; u <= n; u += (u & -u)) bit[u] += x;
| ^~~
art.cpp: In member function 'int BIT::get(int)':
art.cpp:27:52: error: 'bit' was not declared in this scope
27 | for(; u > 0; u -= (u & -u)) ans += bit[u];
| ^~~
art.cpp: In function 'void solve(int)':
art.cpp:45:34: error: expected ';' before '}' token
45 | vec.pb(j)
| ^
| ;
46 | }
| ~
art.cpp:52:29: error: 'n' was not declared in this scope
52 | for(int i = 1; i <= n; i++) bit.update(i, 1);
| ^
art.cpp:57:35: error: no matching function for call to 'BIT::get(int&, int&)'
57 | if(bit.get(m, N) >= f[i] + 1) {
| ~~~~~~~^~~~~~
art.cpp:25:13: note: candidate: 'int BIT::get(int)'
25 | int get(int u) {
| ^~~
art.cpp:25:13: note: candidate expects 1 argument, 2 provided