answer.code: In function ‘void solve()’:
answer.code:46:12: error: ‘bitset’ was not declared in this scope
46 | vector<bitset<N>> f(N);
| ^~~~~~
answer.code:14:1: note: ‘std::bitset’ is defined in header ‘<bitset>’; did you forget to ‘#include <bitset>’?
13 | #include <cmath>
+++ |+#include <bitset>
14 |
answer.code:46:20: error: template argument 1 is invalid
46 | vector<bitset<N>> f(N);
| ^~
answer.code:46:20: error: template argument 2 is invalid
answer.code:47:38: error: invalid types ‘int[long long int]’ for array subscript
47 | for (int i = 1; i <= n; i += 1) f[i][i] = 1;
| ^
answer.code: In lambda function:
answer.code:49:14: error: invalid types ‘int[long long int]’ for array subscript
49 | if (f[a][b]) return;
| ^
answer.code:51:18: error: invalid types ‘int[long long int]’ for array subscript
51 | if (f[i][a]) {
| ^
answer.code:52:18: error: invalid types ‘int[long long int]’ for array subscript
52 | f[i] |= f[b];
| ^
answer.code:52:26: error: invalid types ‘int[long long int]’ for array subscript
52 | f[i] |= f[b];
| ^
answer.code: In function ‘void solve()’:
answer.code:84:25: error: no matching function for call to ‘std::vector<std::array<long long int, 3> >::push_back(<brace-enclosed initializer list>)’
84 | qry[c].push_back({i, a, b});
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/c++/13/vector:66,
from answer.code:4:
/usr/include/c++/13/bits/stl_vector.h:1278:7: note: candidate: ‘constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::array<long long int, 3>; _Alloc = std::allocator<std::array<long long int, 3> >; value_type = std::array<long long int, 3>]’
1278 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/13/bits/stl_vector.h:1278:35: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const std::vector<std::array<long long int, 3> >::value_type&’ {aka ‘const std::array<long long int, 3>&’}
1278 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/13/bits/stl_vector.h:1295:7: note: candidate: ‘constexpr void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::array<long long int, 3>; _Alloc = std::allocator<std::array<long long int, 3> >; value_type = std::array<long long int, 3>]’
1295 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/13/bits/stl_vector.h:1295:30: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<std::array<long long int, 3> >::value_type&&’ {aka ‘std::array<long long int, 3>&&’}
1295 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
answer.code:90:19: error: deduced type ‘std::array<long long int, 3>’ for ‘<structured bindings>’ is incomplete
90 | for (auto [i, a, b] : qry[i]) {
| ^~~~~~~~~
In file included from /usr/include/c++/13/bits/uses_allocator_args.h:38,
from /usr/include/c++/13/bits/memory_resource.h:41,
from /usr/include/c++/13/string:58,
from /usr/include/c++/13/bits/locale_classes.h:40,
from /usr/include/c++/13/bits/ios_base.h:41,
from /usr/include/c++/13/ios:44,
from /usr/include/c++/13/ostream:40,
from /usr/include/c++/13/iostream:41,
from answer.code:1:
/usr/include/c++/13/tuple:2005:45: note: declaration of ‘struct std::array<long long int, 3>’
2005 | template<typename _Tp, size_t _Nm> struct array;
| ^~~~~
In file included from /usr/include/c++/13/string:48:
/usr/include/c++/13/bits/stl_iterator.h: In instantiation of ‘constexpr __gnu_cxx::__normal_iterator<_Iterator, _Container>& __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator++() [with _Iterator = std::array<long long int, 3>*; _Container = std::vector<std::array<long long int, 3> >]’:
answer.code:90:36: required from here
/usr/include/c++/13/bits/stl_iterator.h:1111:11: error: cannot increment a pointer to incomplete type ‘std::array<long long int, 3>’
1111 | ++_M_current;
| ^~~~~~~~~~
/usr/include/c++/13/bits/stl_vector.h: In instantiation of ‘constexpr std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = std::array<long long int, 3>; _Alloc = std::allocator<std::array<long long int, 3> >]’:
/usr/include/c++/13/bits/stl_vector.h:528:7: required from here
/usr/include/c++/13/bits/stl_vector.h:367:49: error: invalid use of incomplete type ‘struct std::array<long long int, 3>’
367 | _M_impl._M_end_of_storage -...