Change this


scanf("%d/%d/%d", &tom.month, &tom.day, &tom.year


to this


scanf("%d %d %d", &tom.month, &tom.day, &tom.year