Help me with https://www.spoj.com/problems/AGGRCOW/

my code link: https://ide.codingblocks.com/s/216816

hey, here is my submitted solution on spoj


u can have a look at it
word of advice be familiar with the book allocation problem before moving onto this, they follow similar approach