|
|
back to boardwhy do i always got compilation error ?? Posted by lol 13 Dec 2007 07:29 #include <math.h> #include <stdio.h> void P(long x, long y) { int i, j; if (x>0 && y>0) { for (i = 1; i <= x+y; i++) { y += x*x; x = x*x+y; y = sqrt(x+(y/labs(y))*(-labs(y))); for (j = 1; j <= 2*y; j++) x = x-y; } } printf("%d %d",x,y); } int main() { long t1,t2; scanf("%ld%ld",&t1,&t2); P(t1,t2); return 0; } Re: why do i always got compilation error ?? Posted by awpris 13 Dec 2007 09:54 labs undeclared... |
|
|