Test cases are not passed

https://hack.codingblocks.com/contests/c/537/53 for this question i’ve written code https://ide.codingblocks.com/s/38800 but the test case is not being passed

Hey Simran, your logic is wrong because pascal triangle’s rows aren’t power of 11 always. You can check it for input 7.
Hint is you can solve this problem using nCr (combination).