int lb = lower_bound(coins, coins+n, money, compare) - coins - 1;
Why was “coins” base address subtracted from an integer lb, when “coins” will give you a non-int address?
int lb = lower_bound(coins, coins+n, money, compare) - coins - 1;
Why was “coins” base address subtracted from an integer lb, when “coins” will give you a non-int address?