0_0_35544927_32671.cpp: In function 'void solve()': 0_0_35544927_32671.cpp:52:33: error: 'p' was not declared in this scope for(int i=1; i<=tot; i++) t[p].l = t[p].r = t[p].sum = t[p].add = 0; ^