Wrong answer in Book Allocation Problem

https://ide.codingblocks.com/#/s/14627
https://hack.codingblocks.com/contests/c/452/1263

Hey ! Ur isPossible function is wrong , first try to build this Boolean function correctly. If you still stuck in it ,then tag me

can you tell what’s wrong in it ?

Yeah ! sure , you have to check wheather no of students is less than or equal to k or not if not then you have to return false , see this code you will understand what you have written wrong in yours
https://ide.codingblocks.com/#/s/14671