#include <stdio.h>intmain(){printf("Вы собираетесь купить патроны на М4 \n");printf("Введите количество патрон:");{intp;scanf("%d",&p);intx;x=2intz;z=p*2;printf("%d",z);printf("$");}getchar();return0;}
In function 'main':
Line 11: error: expected ';' before 'int'
Line 12: error: 'z' undeclared (first use in this function)
Line 12: error: (Each undeclared identifier is reported only once
Line 12: error: for each function it appears in.)