[ create a new paste ] login | about

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

C, pasted on Aug 28:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
main(){
int x; z;
float y;
puts("gia na synexiseis patise 1\n");
scanf("%d",&x);
if(x==1){
printf("as synexisoume\n");
printf("dose to onoma sou\n");
scanf("%f",&y);
printf("%f tora simplirose to pinaka\n",&y);
struct pinakas
{
char fn[20];
char ln[20];
int am[10];
float hg[5];
};}
printf("%f i eggrafi sou olokliro8ike me epitixia\n",&y);
printf("an 8es na deis to pinaka me to programma patise 2\n");
return 0;}


Output:
1
2
3
4
In function 'main':
Line 3: error: 'z' undeclared (first use in this function)
Line 3: error: (Each undeclared identifier is reported only once
Line 3: error: for each function it appears in.)


Create a new paste based on this one


Comments: