If it is possible to create a vector of class then it should not be an issue to create vector of segment tree in c++.
Can you help me in these two things.
1st) when the size of segment tree at each index is same.
2nd) when the sizes at different indices are different.
Even if you help me solve the 1st thing i will be thankful to you.