你的输出语句写错了,a,b变量不能写在双引号里面输出。改为:printf("%d\n%d",a,b);
a,b要写在引号外面printf("%d \n %d", a,b);;
你的代码错了。printf("%d\n%d",a,b);