Concerning the first loop
for (i = 0.01; day <= 64; i *= 2)
The break condition for the loop is base on day variable. However, you don't increment the day at all.
Why not loop through the day and increment i inside the loop. So the loop would be
for (day = 1; day <= 64; day++)
What comes to the second loop
for (double j = 0.01; j * 2)
You should add the condition, how long the loop is continued. The loop always contains three parts:
for (initializer; condition; iterator)
Now you're missing the condition thus the error