[ create a new paste ] login | about

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

C, pasted on Mar 24:
1
2
3
4
5
6
7
8
9
#include<stdio.h>
main ()
int i;

for ( i = 0 ; i<360; i ++)
{
printf("hello ");
return (0);
}


Output:
1
2
3
4
5
6
In function 'main':
Line 5: error: expected declaration specifiers before 'for'
Line 5: error: expected declaration specifiers before 'i'
Line 5: error: expected declaration specifiers before 'i'
Line 3: error: declaration for parameter 'i' but no such parameter
Line 9: error: expected '{' at end of input


Create a new paste based on this one


Comments: