Any idea why my solution is getting a WA. I can't seem to figure out a case where this fails. Help is much appreciated.
#include<bits/stdc++.h>using namespace std;typedef long long ll;typedef vector<int> vpi;struct node{vpi counts ;};class SegTree{public:vector<node> sg;node combine(node lt , node rt){node res = {vpi ( 30 , 0)} ;for(int pos = 0; pos < 30 ; pos++ ){ res.counts[pos] = lt.counts[pos] + rt.counts[pos]; }return res;