[ create a new paste ] login | about

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

C, pasted on Mar 24:
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
int main(void);
int T,H,D;
T=8;
H=367;
D=100;
int sum=T+H+D;
printf("THE SUM KUMA IS;%d", sum);
return 0;
}


Output:
1
2
3
4
5
6
7
8
9
10
11
Line 4: warning: data definition has no type or storage class
Line 5: warning: data definition has no type or storage class
Line 6: warning: data definition has no type or storage class
Line 7: error: initializer element is not constant
Line 8: error: expected declaration specifiers or '...' before string constant
Line 8: error: expected declaration specifiers or '...' before 'sum'
Line 8: warning: data definition has no type or storage class
Line 8: error: conflicting types for 'printf'
t.c:9: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
Line 9: error: expected identifier or '(' before 'return'
Line 10: error: expected identifier or '(' before '}' token


Create a new paste based on this one


Comments: