prog.c: In function ‘nuevo_pedido’:
prog.c:26:49: error: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int (*)[1000]’ [-Werror=format=]
printf("\tNumero de envios? "); scanf("%d",&numero_envios);
~^ ~~~~~~~~~~~~~~
prog.c:34:77: error: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[50][21]’ [-Werror=format=]
printf("\tNombre farmaco (Entre 1 y 20 caracteres)? "); scanf("%s",&c[fecha].nombre_farmaco);
~^ ~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:35:22: error: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[21]’ [-Werror=format=]
printf("%s",c[fecha].nombre_farmaco); //impresion de prueba
~^ ~~~~~~~~~~~~~~~~~~~~~~~
prog.c:18:9: error: unused variable ‘unidades_farmaco’ [-Werror=unused-variable]
int unidades_farmaco;
^~~~~~~~~~~~~~~~
prog.c:17:9: error: unused variable ‘peso_farmaco’ [-Werror=unused-variable]
int peso_farmaco[3000];
^~~~~~~~~~~~
prog.c:12:9: error: unused variable ‘Ref_Pacientes’ [-Werror=unused-variable]
int Ref_Pacientes;
^~~~~~~~~~~~~
prog.c:42:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors