...::: sqrt :::...

Write here if you have problems with your C source code

Moderator: Board moderators

Post Reply
coolzero
New poster
Posts: 8
Joined: Fri Nov 12, 2004 11:33 am

...::: sqrt :::...

Post by coolzero »

Hi.

I'm having problems compiling a program that uses sqrt().

I googled it and I notice that we must use the -lm flag to import the math library...

If I submit a source that need's that flag the judge will accept and use the flag?

If not how can I solve the problem??

Tanks
..
A great helper
Posts: 454
Joined: Thu Oct 18, 2001 2:00 am
Location: Hong Kong

Post by .. »

Why don't you test it yourself?
The judge will compiler it with -lm flag.
My signature:
  • Please make discussion about the algorithm BRFORE posting source code.
    We can learn much more in discussion than reading source code.
  • I HATE testing account.
  • Don't send me source code for debug.
Post Reply

Return to “C”