it is giving 2 warnings…but working fine in sublime text…why??
Balife - greedy algorithms
@gayatri20
Why are you using while(1) loop. This loop is an infinite loop and never stops. That’s why your code is giving TLE. Either remove while(1) loop or change line 35 to cout<<max_load<<endl; return 0;