SImple code runs correctly in DevC++ but not Virtual Studio Code : Code runs fine DevC++ but not Virtual studio Code

Was doing a Homework question. Simple code adding two integers. Code looked fine but running it kept giving me the wrong result. After losing my mind  I tried to run it in DevC++ to which it gave me the result I expected

I'm very very new to coding. Virtual studio Code is trying to tell me something in the output window but I don't know what it's is trying to tell me. 

````
#include <stdio.h>
int main()

{

double x,y,z;

printf("Enter first number:" );
    
scanf("%i", &x);

printf("Enter second number:" );
    
scanf("%i", &y);


printf("the first number is: %d \n",x);
printf("the second number is: %d \n ",y);


z= x+y;

printf("Output 1: The result is %d . \n",z);
printf("Output 2: The sum of %d and %d is %d . ",x,y,z);

return 0;
}

````


-------------------VS Code output Window-------------------------
````
hwidk.cpp:19:8: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
 printf("Output 1: The result is %d . \n",z);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~

[hwidk.cpp 2019-05-27 21:35:01.608]
hwidk.cpp:20:8: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
 printf("Output 2: The sum of %d and %d is %d . ",x,y,z);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
hwidk.cpp:20:8: warning: format '%d' expects argument of type 'int', but argument 3 has type 'double' [-Wformat=]

[hwidk.cpp 2019-05-27 21:35:01.608]
hwidk.cpp:20:8: warning: format '%d' expects argument of type 'int', but argument 4 has type 'double' [-Wformat=]
````
--------------Virtual Studio Runs the code as------------------------
````

Enter first number:5
Enter second number:6
the first number is: 5
the second number is: 6
Output 1: The result is 7 .
Output 2: The sum of 5 and 0 is 6
````