程序经修改后已经可以编译、运行了。程序如下:#include<stdio.h>int num1;int num2;int result1, result2, result3, result4;int main(){printf("Enter the two number is:\n");scanf_s("%d%d", &num1,&num2);result1 = num1 + num2;result2 = num1 - num2;result3 = num1 * num2;result4 = num1 / num2;printf("The result is:%d\n", result1);printf("The result is:%d\n", result2);printf("The result is:%d\n", result3);printf("The result is:%d\n", result4);return 0;}程序出错的原因:①有的编译系统可能不支持scanf_s(),如有的TC系统;②如果支持的话,你这一句也有误,应为:scanf_s("%d%d", &num1,&num2);③为了程序输出清晰,对打印语句增加了换行。程序的运行例如下: