[ create a new paste ] login | about

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

C, pasted on Mar 15:
1
2
3
4
#include<stdio.h>
int main{}
printf("hello world");
return 0;


Output:
1
2
3
4
5
6
Line 2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
Line 3: error: expected declaration specifiers or '...' before string constant
Line 3: warning: data definition has no type or storage class
Line 3: error: conflicting types for 'printf'
t.c:4: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
Line 4: error: expected identifier or '(' before 'return'


Create a new paste based on this one


Comments: