Why my solution is giving wrong answer

code:https://ide.codingblocks.com/s/216189

@spagire4,
In your code, what does BIT[i][j][k] store…??

@abhijeet.srivastava6499 x,y,z coordinates

@spagire4,
Corrected code, here
Correction, Line 60: swap(x, x0); swap(y, y0); swap(z, z0);