scanf("%d%d%d",&a,&b,&c); // scanf
第7行:scanf_s("%d%c%d", &date1, &op, &date2); 修改为:scanf_s("%d%c%d", &date1, &op, 1, &date2);