dango3.cpp: In function 'void dfs(int)':
dango3.cpp:27:18: error: request for member 'clear' in 'v.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'}
27 | v[i].clear();
| ^~~~~
dango3.cpp:9:12: error: request for member 'emplace_back' in 'v.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'}
9 | #define pb emplace_back
| ^~~~~~~~~~~~
dango3.cpp:28:42: note: in expansion of macro 'pb'
28 | for (j=1; j <= nn; ++j) v[i].pb(a[i*mm+j]);
| ^~
dango3.cpp:29:29: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'}
29 | ret = Query(v[i]);
| ^
In file included from dango3.cpp:1:
dango3.h:5:35: note: in passing argument 1 of 'int Query(const std::vector<int>&)'
5 | int Query(const std::vector<int> &x);
| ~~~~~~~~~~~~~~~~~~~~~~~~^
dango3.cpp:34:47: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'}
34 | for (i=0; i < mm; ++i) Answer(v[i]);
| ^
In file included from dango3.cpp:1:
dango3.h:6:37: note: in passing argument 1 of 'void Answer(const std::vector<int>&)'
6 | void Answer(const std::vector<int> &a);
| ~~~~~~~~~~~~~~~~~~~~~~~~^
dango3.cpp:43:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
43 | ans[d] = i, --cnt[i];
| ^~~
| abs
dango3.cpp: In function 'void Solve(int, int)':
dango3.cpp:51:8: warning: unused variable 'i' [-Wunused-variable]
51 | ll i, j;
| ^
dango3.cpp:51:11: warning: unused variable 'j' [-Wunused-variable]
51 | ll i, j;
| ^