N queen problem

https://ide.codingblocks.com/s/343729 giving me wrong ouput

hello @shrutikatyal
a)
image

here it should be y>=0

b)
image

here it should be y<n