不知道哪错了,没办法了

img

img


求解

a=10后面的逗号是中文下的。

img


main 前面加上void
最后的输出改为:printf("d=%d\n",d);
代码修改如下,直接复制:

#include <stdio.h>
int main()
{
    int a=10,b=010,c=0x10;
    int d;
    d=a+b+c;
    printf("a=%d,b=%d,c=%d\n",a,b,c);
    printf("d=%d\n",d);
    return 0;
}

printf("d=%d\n",d);
int main(),最后return 0;
int a=10,b=010,c=0x10;

我建议题主,不要一边和女朋友聊天一边写代码。程序员大忌,就是一边聊天一边写代码(中英文切换失败)