Онлайн компилятор C

#include <stdio.h> int main() { int a,b,c,X,Y; scanf("%d%d%d",a,b,c); X=a+b+c; Y=a*b*c; printf("&d\n%d",X,Y); return 0; }
This code reads three integers, calculates their sum and product, and prints them. However, there are two mistakes that prevent it from working correctly.

- The `scanf` function requires addresses of variables, not the variables themselves. You passed `a`, `b`, `c` but should pass `&a`, `&b`, `&c`.
- The `printf` format string has `&d` instead of `%d` for the first value. The `&` is not a valid format specifier.