Balife-greedy approach

https://ide.codingblocks.com/s/363972 what is wrong in this code it is not passing only test case 3

Hey @shubhangis248
Add this statement otherwise print multiple lines

if(load%n!=0)
    {
        cout<<-1<<endl;
        return 0;//add
    }