You haven't assigned any value to d. It is not a variable unless you initialize it. You could say
int d = x + y;
Or something else, but it has to exist before you can print it. UNLESS you are just trying to print the letter "d" in that case, you need quotation marks around it.