[ create a new paste ] login | about

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

C, pasted on Jun 18:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include<stdio.h>
#include<conio.h>

main()
{
for ( i = 1; i < 4; i++)
{
printf ("Outer %d\n", i);
for ( j = 0; j < i; j++)
{
printf("Inner%d\n", j);

}
}
}


Output:
1
2
3
4
5
6
Line 17: error: conio.h: No such file or directory
In function 'main':
Line 6: error: 'i' undeclared (first use in this function)
Line 6: error: (Each undeclared identifier is reported only once
Line 6: error: for each function it appears in.)
Line 9: error: 'j' undeclared (first use in this function)


Create a new paste based on this one


Comments: