Problem nis
User wtnetlegend
Submission Time 2026-01-25 20:55:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nis.cpp: In function ‘int main()’:
nis.cpp:23:21: error: ‘compress’ was not declared in this scope; did you mean ‘vi_compressed’?
23 | ll vi_compressed = compress(v[i], vals);
| ^~~~~~~~
| vi_compressed
nis.cpp:24:40: error: no matching function for call to ‘get(ll, std::vector<long long int>&)’
24 | ll numseq = get(vi_compressed - 1, BIT) + 1;
| ^
In file included from /usr/include/c++/9/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from nis.cpp:1:
/usr/include/c++/9/utility:219:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)’
219 | get(std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c