prog.c: In function 'main':
prog.c:19:8: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'short int *' [-Wformat=]
scanf("%d", &n);
^
prog.c:25:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[10]' [-Wformat=]
scanf("%s%s%s%d", &b.name, &b.type, &b.maker, &b.type);
^
prog.c:25:10: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[10]' [-Wformat=]
prog.c:25:10: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'char (*)[10]' [-Wformat=]
prog.c:25:10: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'char (*)[10]' [-Wformat=]
prog.c:39:10: warning: format '%d' expects a matching 'int' argument [-Wformat=]
printf("%d %s %s %s %d, i, A[i].name, A[i].type, A[i].maker, A[i].price"); // Печатает отсортированные данные
^
prog.c:39:10: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
prog.c:39:10: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
prog.c:39:10: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
prog.c:39:10: warning: format '%d' expects a matching 'int' argument [-Wformat=]
prog.c:40:2: warning: implicit declaration of function 'getch' [-Wimplicit-function-declaration]
getch();
^
prog.c:15:9: warning: 'i' is used uninitialized in this function [-Wuninitialized]
struct chip A[i];
^
/home/UMSbHE/cco0Kdah.o: In function `main':
prog.c:(.text.startup+0x17a): undefined reference to `getch'
collect2: error: ld returned 1 exit status