Help in Nqueen

I was doing N queen problem on leetcode

I’m unable to understand what’s wrong with my code, its not printing out anything, while debugging I got to know its not pushing res in ans for even once.

Can someone please help me out?

Hope this (https://www.codechef.com/viewsolution/36969933) might help