[ create a new paste ] login | about

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

C, pasted on Apr 6:
1
2
3
4
5
6
7
8
9
#include<stdio.h>
int main()
{
	float halfValue = 0.5;
	float piValue = 3.141 592 65;
	printf("The value of half is: %f\n", half Value);
	printf("The value of Pi is: %f\n", piValue);
	return 0;
}


Output:
1
2
3
4
5
6
In function 'main':
Line 5: error: expected ',' or ';' before numeric constant
Line 6: error: 'half' 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 6: error: expected ')' before 'Value'


Create a new paste based on this one


Comments: