ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1214. Strange Procedure

why 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...