SIr , in this i returned a 2d array out of a 3d array but i am getting an error while returning so what is the error in that .
Code :
ll** query(ll (*tree)[2][2],ll s,ll e,ll l,ll r,ll mod,ll index){
if(l<=s && r>=e){
return tree[index];
}
}