[ create a new paste ] login | about

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

C, pasted on Dec 7:
1
2
3
4
5
6
7
int a=1;
int b=2;
if (a=b)
 {
 a++;
}
printf("ok");


Output:
1
2
3
4
5
Line 3: error: expected identifier or '(' before 'if'
Line 7: error: expected declaration specifiers or '...' before string constant
Line 7: warning: data definition has no type or storage class
Line 7: error: conflicting types for 'printf'
t.c:8: note: a parameter list with an ellipsis can't match an empty parameter name list declaration


Create a new paste based on this one


Comments: