0_0_39450855_4734.cpp:15:10: error: 'vector' in namespace 'std' does not name a template type
15 | std::vector<T> tr;
| ^~~~~~
0_0_39450855_4734.cpp:6:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
5 | #include <bitset>
+++ |+#include <vector>
6 |
0_0_39450855_4734.cpp: In constructor 'Fenwick<T>::Fenwick(i64)':
0_0_39450855_4734.cpp:16:28: error: class 'Fenwick<T>' does not have any field named 'tr'
16 | Fenwick(int n) : n(n), tr(n + 1) {}
| ^~
0_0_39450855_4734.cpp: In member function 'void Fenwick<T>::add(i64, T)':
0_0_39450855_4734.cpp:19:13: error: 'tr' was not declared in this scope; did you mean 'tm'?
19 | tr[i] += v;
| ^~
| tm
0_0_39450855_4734.cpp: In member function 'T Fenwick<T>::sum(i64)':
0_0_39450855_4734.cpp:25:20: error: 'tr' was not declared in this scope; did you mean 'tm'?
25 | res += tr[i];
| ^~
| tm
0_0_39450855_4734.cpp: In function 'void solve()':
0_0_39450855_4734.cpp:39:10: error: 'vector' is not a member of 'std'
39 | std::vector<std::vector<int>> adj(n);
| ^~~~~~
0_0_39450855_4734.cpp:39:10: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
0_0_39450855_4734.cpp:39:22: error: 'vector' is not a member of 'std'
39 | std::vector<std::vector<int>> adj(n);
| ^~~~~~
0_0_39450855_4734.cpp:39:22: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
0_0_39450855_4734.cpp:39:32: error: expected primary-expression before '>>' token
39 | std::vector<std::vector<int>> adj(n);
| ^~
0_0_39450855_4734.cpp:39:35: error: 'adj' was not declared in this scope
39 | std::vector<std::vector<int>> adj(n);
| ^~~
0_0_39450855_4734.cpp:50:10: error: 'vector' is not a member of 'std'
50 | std::vector<int> parent(n, -1), siz(n), dfn(n), seq(n), color(n), cnt(n), ans(n);
| ^~~~~~
0_0_39450855_4734.cpp:50:10: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
0_0_39450855_4734.cpp:50:20: error: expected primary-expression before '>' token
50 | std::vector<int> parent(n, -1), siz(n), dfn(n), seq(n), color(n), cnt(n), ans(n);
| ^
0_0_39450855_4734.cpp:50:22: error: 'parent' was not declared in this scope
50 | std::vector<int> parent(n, -1), siz(n), dfn(n), seq(n), color(n), cnt(n), ans(n);
| ^~~~~~
0_0_39450855_4734.cpp:50:37: error: 'siz' was not declared in this scope
50 | std::vector<int> parent(n, -1), siz(n), dfn(n), seq(n), color(n), cnt(n), ans(n);
| ^~~
0_0_39450855_4734.cpp:50:45: error: 'dfn' was not declared in this scope
50 | std::vector<int> parent(n, -1), siz(n), dfn(n), seq(n), color(n), cnt(n), ans(n);
| ^~~
0_0_39450855_4734.cpp:50:53: error: 'seq' was not declared in this scope; did you mean '__pstl::execution::v1::seq'?
50 | std::vector<int> parent(n, -1), siz(n), dfn(n), seq(n), color(n), cnt(n), ans(n);
| ^~~
| __pstl::execution::v1::seq
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/pstl/glue_algorithm_defs.h:15,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:73,
from 0_0_39450855_4734.cpp:2:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/pstl/execution_defs.h:110:46: note: '__pstl::execution::v1::seq' declared here
110 | _GLIBCXX17_INLINE constexpr sequenced_policy seq{};
| ^~~
0_0_39450855_4734.cpp:50:61: error: 'color' was not declared in this scope
50 | std::vector<int> parent(n, -1), siz(n), dfn(n), seq(n), color(n), cnt(n), ans(n);
| ^~~~~
0_0_39450855_4734.cpp:50:71: error: 'cnt' was not declared in this scope; did you mean 'int'?
50 | std::vector<int> parent(n, -1), siz(n), dfn(n), seq(n), color(n), cnt(n), ans(n);
| ^~~
| int
0_0_39450855_4734.cpp:50:79: error: 'ans' was not declared in this scope; did you mean 'abs'?
50 | std::vector<int> parent(n, -1), siz(n), dfn(n), seq(n), color(n), cnt(n), ans(n);
| ^~~
| abs
|