I get the warning "warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]" and also when I run the program it wont read any input I give it. I've been spending hours figuring out ways to make this program work due to being new with programming. Any help would be much appreciated!
int oilChange = 35;
int tireRotation = 19;
int carWash = 7;
int carWax = 12;
int totPrice = 0;
char service1[15];
char service2[15];
printf("Davy's auto shop services\n"); //printing the menu
printf("Oil change -- $%d\n", oilChange);
printf("Tire rotation -- $%d\n", tireRotation);
printf("Car wash -- $%d\n", carWash);
printf("Car wax -- $%d\n\n", carWax);
printf("Select first service: "); //prompting and reading first service
scanf("%[^\n]%s", service1);
printf("%s", service1);
printf("Select second service: "); //prompting and reading service service
scanf("%[^\n]%s", service1);
printf("%s", service2);