[ create a new paste ] login | about

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

C, pasted on Aug 10:
1
2
3
4
5
6
7
8
9
10
11
int main ()
{
double x = 1;
for (int i=0;i<100;i++)
{
    y = x * pow(.5, 16.66);
    printf("%f", y);
}

return 0;
}


Output:
1
2
3
4
5
6
In function 'main':
Line 4: error: 'for' loop initial declaration used outside C99 mode
Line 6: error: 'y' 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: warning: incompatible implicit declaration of built-in function 'pow'


Create a new paste based on this one


Comments: