| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1291627 | lucaskojima | Connecting Supertrees (IOI20_supertrees) | C++17 | Compilation error | 0 ms | 0 KiB |
#include "bits/stdc++.h"
#include "supertrees.h"
#define sz(x) (int)size(x)
#define all(x) begin(x), end(x)
#define rall(x) rbegin(x), rend(x)
using namespace std;
using ll = long long;
using pii = pair<int, int>;
const char nl = '\n';
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3f;
struct dsu {
vector<int> e;
dsu(int n) : e(n, -1) {}
int find(int v) { return e[v] < 0 ? v : e[v] = find(e[v]); }
bool same(int a, int b) { return find(a) == find(b); }
void une(int a, int b) {
a = find(a), b = find(b);
if (a == b) return;
if (e[a] < e[b]) swap(a, b);
e[b] += e[a];
e[a] = b;
}
};
int construct(vector<vector<int>> p) {
int n = sz(p);
dsu dsu(n);
for (int i = 0; i < n; i++)
for (int j = i; j < n; j++)
if (p[i][j] == 1)
dsu.une(i, j);
for (int i = 0; i < n; i++)
for (int j = i; j < n; j++)
if (p[i][j] == 0 && dsu.same(i, j))
return 0;
vector<vector<int>> comp(n);
for (int i = 0; i < n; i++) {
int p = dsu.find(i);
comp[p].push_back(i);
}
vector ans(n, vector<int>(n));
for (int i = 0; i < n; i++)
for (int x : comp[i]) {
if (x == i) continue;
ans[i][x] = 1;
ans[x][i] = 1;
}
for (int i = 0; i < n; i++) {
for (int i = 0; i < n; i++)
cout << ans[i] << ' ';
cout << nl;
}
build(ans);
return 1;
}
Compilation message (stderr)
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:60:30: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'})
60 | cout << ans[i] << ' ';
In file included from /usr/include/c++/13/istream:41,
from /usr/include/c++/13/sstream:40,
from /usr/include/c++/13/complex:45,
from /usr/include/c++/13/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:127,
from supertrees.cpp:1:
/usr/include/c++/13/ostream:110:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
110 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/13/ostream:110:36: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
110 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/ostream:119:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]'
119 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/13/ostream:119:32: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
119 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/13/ostream:129:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
129 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/include/c++/13/ostream:129:30: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'std::ios_base& (*)(std::ios_base&)'
129 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/13/ostream:168:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
168 | operator<<(long __n)
| ^~~~~~~~
/usr/include/c++/13/ostream:168:23: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'long int'
168 | operator<<(long __n)
| ~~~~~^~~
/usr/include/c++/13/ostream:172:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
172 | operator<<(unsigned long __n)
| ^~~~~~~~
/usr/include/c++/13/ostream:172:32: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'long unsigned int'
172 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/13/ostream:176:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
176 | operator<<(bool __n)
| ^~~~~~~~
/usr/include/c++/13/ostream:176:23: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'bool'
176 | operator<<(bool __n)
| ~~~~~^~~
In file included from /usr/include/c++/13/ostream:880:
/usr/include/c++/13/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]'
96 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'short int'
97 | operator<<(short __n)
| ~~~~~~^~~
/usr/include/c++/13/ostream:183:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
183 | operator<<(unsigned short __n)
| ^~~~~~~~
/usr/include/c++/13/ostream:183:33: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'short unsigned int'
183 | operator<<(unsigned short __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/13/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
110 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'int'
111 | operator<<(int __n)
| ~~~~^~~
/usr/include/c++/13/ostream:194:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
194 | operator<<(unsigned int __n)
| ^~~~~~~~
/usr/include/c++/13/ostream:194:31: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'unsigned int'
194 | operator<<(unsigned int __n)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/13/ostream:203:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
203 | operator<<(long long __n)
| ^~~~~~~~
/usr/include/c++/13/ostream:203:28: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'long long int'
203 | operator<<(long long __n)
| ~~~~~~~~~~^~~
/usr/include/c++/13/ostream:207:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
207 | operator<<(unsigned long long __n)
| ^~~~~~~~
/usr/include/c++/13/ostream:207:37: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'long long unsigned int'
207 | operator<<(unsigned long long __n)
| ~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/13/ostream:222:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
222 | operator<<(double __f)
| ^~~~~~~~
/usr/include/c++/13/ostream:222:25: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'double'
222 | operator<<(double __f)
| ~~~~~~~^~~
/usr/include/c++/13/ostream:226:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
226 | operator<<(float __f)
| ^~~~~~~~
/usr/include/c++/13/ostream:226:24: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'float'
226 | operator<<(float __f)
| ~~~~~~^~~
/usr/include/c++/13/ostream:234:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
234 | operator<<(long double __f)
| ^~~~~~~~
/usr/include/c++/13/ostream:234:30: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'long double'
234 | operator<<(long double __f)
| ~~~~~~~~~~~~^~~
/usr/include/c++/13/ostream:292:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
292 | operator<<(const void* __p)
| ^~~~~~~~
/usr/include/c++/13/ostream:292:30: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'const void*'
292 | operator<<(const void* __p)
| ~~~~~~~~~~~~^~~
/usr/include/c++/13/ostream:297:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]'
297 | operator<<(nullptr_t)
| ^~~~~~~~
/usr/include/c++/13/ostream:297:18: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'std::nullptr_t'
297 | operator<<(nullptr_t)
| ^~~~~~~~~
/usr/include/c++/13/bits/ostream.tcc:124:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]'
124 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/ostream.tcc:125:34: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} to 'std::basic_ostream<char>::__streambuf_type*' {aka 'std::basic_streambuf<char>*'}
125 | operator<<(__streambuf_type* __sbin)
| ~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/13/regex:68,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:181:
/usr/include/c++/13/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/regex.h:1715:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::__cxx11::sub_match<_Bi_iter>'
60 | cout << ans[i] << ' ';
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:41:
/usr/include/c++/13/cstddef:124:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
124 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/13/cstddef:124:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:25: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
60 | cout << ans[i] << ' ';
| ^~~~
In file included from /usr/include/c++/13/bits/basic_string.h:47,
from /usr/include/c++/13/string:54,
from /usr/include/c++/13/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52:
/usr/include/c++/13/string_view:761:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
761 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/string_view:761:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: 'std::vector<int>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/basic_string.h:4032:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4032 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/basic_string.h:4032:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bitset:1683:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
1683 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bitset:1683:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::bitset<_Nb>'
60 | cout << ans[i] << ' ';
| ^
In file included from /usr/include/c++/13/bits/ios_base.h:46,
from /usr/include/c++/13/streambuf:43,
from /usr/include/c++/13/bits/streambuf_iterator.h:35,
from /usr/include/c++/13/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:54:
/usr/include/c++/13/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/13/system_error:339:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'const std::error_code&'
60 | cout << ans[i] << ' ';
| ^
In file included from /usr/include/c++/13/memory:80,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:56:
/usr/include/c++/13/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::__shared_ptr<_Tp, _Lp>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/ostream:554:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
554 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/13/ostream:554:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: deduced conflicting types for parameter '_CharT' ('char' and 'std::vector<int>')
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/ostream:564:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
564 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/13/ostream:564:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'char'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/ostream:570:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
570 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/13/ostream:570:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'char'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/ostream:581:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
581 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/13/ostream:581:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'signed char'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/ostream:586:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
586 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/13/ostream:586:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'unsigned char'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/ostream:645:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
645 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/13/ostream:645:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: mismatched types 'const _CharT*' and 'std::vector<int>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/13/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'const char*'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/ostream:662:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
662 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/13/ostream:662:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'const char*'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/ostream:675:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
675 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/13/ostream:675:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'const signed char*'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/ostream:680:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
680 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/13/ostream:680:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'const unsigned char*'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/ostream:801:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
801 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/13/ostream:801:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_ostream<char>&; _Tp = std::vector<int>]':
supertrees.cpp:60:17: required from here
/usr/include/c++/13/ostream:801:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
/usr/include/c++/13/complex:558:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const complex<_Tp>&)'
558 | operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/13/complex:558:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::complex<_Tp>'
60 | cout << ans[i] << ' ';
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:143:
/usr/include/c++/13/iomanip:81:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _Resetiosflags)'
81 | operator<<(basic_ostream<_CharT, _Traits>& __os, _Resetiosflags __f)
| ^~~~~~~~
/usr/include/c++/13/iomanip:81:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'std::_Resetiosflags'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/iomanip:111:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _Setiosflags)'
111 | operator<<(basic_ostream<_CharT, _Traits>& __os, _Setiosflags __f)
| ^~~~~~~~
/usr/include/c++/13/iomanip:111:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'std::_Setiosflags'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/iomanip:145:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _Setbase)'
145 | operator<<(basic_ostream<_CharT, _Traits>& __os, _Setbase __f)
| ^~~~~~~~
/usr/include/c++/13/iomanip:145:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'std::_Setbase'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/iomanip:180:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _Setfill<_CharT>)'
180 | operator<<(basic_ostream<_CharT, _Traits>& __os, _Setfill<_CharT> __f)
| ^~~~~~~~
/usr/include/c++/13/iomanip:180:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: 'std::vector<int>' is not derived from 'std::_Setfill<_CharT>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/iomanip:210:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _Setprecision)'
210 | operator<<(basic_ostream<_CharT, _Traits>& __os, _Setprecision __f)
| ^~~~~~~~
/usr/include/c++/13/iomanip:210:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'std::_Setprecision'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/iomanip:240:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _Setw)'
240 | operator<<(basic_ostream<_CharT, _Traits>& __os, _Setw __f)
| ^~~~~~~~
/usr/include/c++/13/iomanip:240:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'std::_Setw'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/iomanip:313:5: note: candidate: 'template<class _CharT, class _Traits, class _MoneyT> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _Put_money<_MoneyT>)'
313 | operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_money<_MoneyT> __f)
| ^~~~~~~~
/usr/include/c++/13/iomanip:313:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: 'std::vector<int>' is not derived from 'std::_Put_money<_MoneyT>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/iomanip:365:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _Put_time<_CharT>)'
365 | operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_time<_CharT> __f)
| ^~~~~~~~
/usr/include/c++/13/iomanip:365:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: 'std::vector<int>' is not derived from 'std::_Put_time<_CharT>'
60 | cout << ans[i] << ' ';
| ^
In file included from /usr/include/c++/13/valarray:605,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:166:
/usr/include/c++/13/bits/valarray_after.h:413:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__shift_left, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__shift_left, typename _Dom1::value_type>::result_type> std::operator<<(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)'
413 | _DEFINE_EXPR_BINARY_OPERATOR(<<, struct std::__shift_left)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:413:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/valarray_after.h:413:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__shift_left, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__shift_left, typename _Dom1::value_type>::result_type> std::operator<<(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
413 | _DEFINE_EXPR_BINARY_OPERATOR(<<, struct std::__shift_left)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:413:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/valarray_after.h:413:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__shift_left, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__shift_left, typename _Dom1::value_type>::result_type> std::operator<<(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
413 | _DEFINE_EXPR_BINARY_OPERATOR(<<, struct std::__shift_left)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:413:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/valarray_after.h:413:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__shift_left, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__shift_left, typename _Dom1::value_type>::result_type> std::operator<<(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)'
413 | _DEFINE_EXPR_BINARY_OPERATOR(<<, struct std::__shift_left)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:413:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/valarray_after.h:413:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__shift_left, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__shift_left, typename _Dom1::value_type>::result_type> std::operator<<(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
413 | _DEFINE_EXPR_BINARY_OPERATOR(<<, struct std::__shift_left)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:413:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/valarray:1204:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__shift_left, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__shift_left, _Tp>::result_type> std::operator<<(const valarray<_Tp>&, const valarray<_Tp>&)'
1204 | _DEFINE_BINARY_OPERATOR(<<, __shift_left)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/valarray:1204:1: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::valarray<_Tp>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/valarray:1204:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__shift_left, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__shift_left, _Tp>::result_type> std::operator<<(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)'
1204 | _DEFINE_BINARY_OPERATOR(<<, __shift_left)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/valarray:1204:1: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'const std::valarray<_Tp>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/valarray:1204:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__shift_left, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__shift_left, _Tp>::result_type> std::operator<<(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)'
1204 | _DEFINE_BINARY_OPERATOR(<<, __shift_left)
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/valarray:1204:1: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::valarray<_Tp>'
60 | cout << ans[i] << ' ';
| ^
In file included from /usr/include/c++/13/random:51,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:179:
/usr/include/c++/13/bits/random.h:1341:5: note: candidate: 'template<class _RandomNumberEngine, long unsigned int __w, class _UIntType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const independent_bits_engine<_RandomNumberEngine, __w, _UIntType>&)'
1341 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/random.h:1341:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::independent_bits_engine<_RandomNumberEngine, __w, _UIntType>'
60 | cout << ans[i] << ' ';
| ^
In file included from /usr/include/c++/13/random:53:
/usr/include/c++/13/bits/random.tcc:910:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const uniform_int_distribution<_IntType>&)'
910 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:910:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::uniform_int_distribution<_IntType>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/random.tcc:968:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const uniform_real_distribution<_IntType>&)'
968 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:968:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::uniform_real_distribution<_IntType>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/random.tcc:2145:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const cauchy_distribution<_RealType>&)'
2145 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:2145:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::cauchy_distribution<_RealType>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/random.tcc:1029:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bernoulli_distribution&)'
1029 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:1029:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: cannot convert 'ans.std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))' (type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'}) to type 'const std::bernoulli_distribution&'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/random.tcc:1110:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const geometric_distribution<_IntType>&)'
1110 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:1110:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::geometric_distribution<_IntType>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/random.tcc:1762:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const exponential_distribution<_RealType>&)'
1762 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:1762:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::exponential_distribution<_RealType>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/random.tcc:2539:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const weibull_distribution<_RealType>&)'
2539 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:2539:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::weibull_distribution<_RealType>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/random.tcc:2613:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const extreme_value_distribution<_RealType>&)'
2613 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:2613:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::extreme_value_distribution<_RealType>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/random.tcc:156:5: note: candidate: 'template<class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const linear_congruential_engine<_UIntType, __a, __c, __m>&)'
156 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:156:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::linear_congruential_engine<_UIntType, __a, __c, __m>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/random.tcc:477:5: note: candidate: 'template<class _UIntType1, long unsigned int __w1, long unsigned int __n1, long unsigned int __m1, long unsigned int __r1, _UIntType1 __a1, long unsigned int __u1, _UIntType1 __d1, long unsigned int __s1, _UIntType1 __b1, long unsigned int __t1, _UIntType1 __c1, long unsigned int __l1, _UIntType1 __f1, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>&)'
477 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:477:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/random.tcc:635:5: note: candidate: 'template<class _UIntType, long unsigned int __w, long unsigned int __s, long unsigned int __r, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const subtract_with_carry_engine<_UIntType, __w, __s, __r>&)'
635 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:635:5: note: template argument deduction/substitution failed:
supertrees.cpp:60:38: note: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'std::vector<int>'} is not derived from 'const std::subtract_with_carry_engine<_UIntType, __w, __s, __r>'
60 | cout << ans[i] << ' ';
| ^
/usr/include/c++/13/bits/random.tcc:704:5: note: candidate: 'template<class _RandomNumberEngine, long unsigned int __p, long unsigned int __r, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits