求解答一下,我输入的应该是int吧。

我输入的应该是int吧,为什么编译器说我输入的是int*,求解答

img

img

把printf那两行的&都删掉,而且你得发题目出来我才能更好地为你解答啊

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

{
int Pa, Pb, c, d, e,j=0,k=0;
scanf("%d %d", &Pa, &Pb);
scanf("%d %d %d", &c, &d, &e);
if (c == 0)
{
j++;
}
else
{
k++;
}
if(d == 0)
{
j++;
}
else
{
k++;
}
if(e == 0)
{
j++;
}
else
{
k++;
}
if (Pa > Pb)
{
if (j >= 1)
{
printf("The winner is a: %d + %d", Pa, j);
}
if (j == 0)
{
printf("The winner is b: %d + %d",Pb,k);
}
}
if(Pa<Pb)
{
if (k >= 1)
{
printf("The winner is b: %d + %d", Pb, k);
}
if (k == 0)
{
printf("The winner is a: %d + %d",Pa,j);
}
}
return 0;
}