My code is not passing test cases on hackerblock for book allocation problem

https://ide.codingblocks.com/s/263262, if you could help me with it.

MODIFIED CODE

only mistake you have done is

if(count<m){
		return true;
	}
	else{
		return false;
	}

correct one is

if(count<=m){
		return true;
	}
	else{
		return false;
	}