[ create a new paste ] login | about

Link: http://codepad.org/ruLCc3b4    [ raw code | output | fork ]

C, pasted on Sep 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
int main()
{
 printf( "Вы собираетесь купить патроны на М4 \n");
  printf( "Введите количество патрон:");
{
int p;
scanf ("%d", &p );
 int x;
  x = 2
  int z;
   z = p * 2;
   printf("%d", z );
     printf( "$" ); }
getchar();
return 0;   
}


Output:
1
2
3
4
5
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.)


Create a new paste based on this one


Comments: