Problem | mergesets |
---|---|
User | wrizz69 |
Submission Time | 2024-12-08 17:51:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mergesets.cpp:8:17: error: ‘__gnu_pbds’ is not a namespace-name
8 | using namespace __gnu_pbds;
| ^~~~~~~~~~
mergesets.cpp:14:5: error: ‘gp_hash_table’ does not name a type
14 | gp_hash_table<int,int> mp;
| ^~~~~~~~~~~~~
mergesets.cpp: In member function ‘void fenwick::inc(long long int)’:
mergesets.cpp:9:26: error: ‘x’ cannot be used as a function
9 | #define lsb (x) (x & (-x))
| ^
mergesets.cpp:18:26: note: in expansion of macro ‘lsb’
18 | for(; x <n ;x += lsb(x)) {
| ^~~
mergesets.cpp:19:15: error: ‘mp’ was not declared in this scope
19 | ++mp[x];
| ^~
mergesets.cpp: In member function ‘void fenwick::query(long long int)’:
mergesets.cpp:9:26: error: ‘x’ cannot be used as a function
9 | #define lsb (x) (x & (-x))
| ^
mergesets.cp