In recurse(), cast the pointer difference to int to match the format. The difference is expected to fit in an int.