What is the problem?

It got accepted in other platforms but not here.N is very low .So 2^n solution is acceptable.But it is not getting accepted.

yes, 2^11 will be small enough.
Please share your code via ide.codingblocks.com so that i can have a look