分析错误,并改正上机调试

#include <stdio.h>

#include <stdlib.h>

int main()

int p,x,y;

scanf("%d%d",&x,%y)

printf("The sum of x and y is:%d",p)

p=x+y

return 0;

修改后如下:
有帮助望采纳

#include <stdio.h>

#include <stdlib.h>

int main()
{

    int p, x, y;
    scanf("%d%d", &x, &y);
    p = x + y;
    printf("The sum of x and y is:%.1f", p);

    return 0;
}