Search found 4 matches

by danieldonadon
Wed Jun 24, 2015 1:55 am
Forum: Bugs and suggestions
Topic: ANSI C not linking lm (math.h)
Replies: 2
Views: 5645

Re: ANSI C not linking lm (math.h)

Yes, it is quite disappointing that such problem would pass unnoticed. Oddly, it included an error to "scanf" too. Actually it was not an error message, but a warning. The compiler was quite pedantic and notified you that the function scanf returns a value that should be used somehow in an expressio...
by danieldonadon
Mon Jun 15, 2015 10:32 pm
Forum: Bugs and suggestions
Topic: ANSI C not linking lm (math.h)
Replies: 2
Views: 5645

ANSI C not linking lm (math.h)

I tried to submit a program using ANSI C as compiler and I got the following compilation error: code.o: In function `main': code.c:(.text.startup+0x54): undefined reference to `floor' code.c:(.text.startup+0xac): undefined reference to `sqrt' collect2: error: ld returned 1 exit status It seems that ...
by danieldonadon
Fri Feb 14, 2014 9:38 pm
Forum: Volume 112 (11200-11299)
Topic: 11297 - Census
Replies: 24
Views: 14748

Re: 11297 - Census

For anyone who still have doubts about the problem description: 1. The country is divided in N x M regions, where (1 <= N, M <= 500). [It is not N x N as stated.] 2. All coordinates are given as (ROW, COLUMN), where (1 <= ROW <= N) and (1 <= COLUMN <= M). For instance, region (1, 2) is the region of...
by danieldonadon
Thu Nov 24, 2011 4:05 am
Forum: Volume 100 (10000-10099)
Topic: 10044 - Erdos Numbers
Replies: 102
Views: 39636

Re: 10044 - Erdos Numbers

The lack of information in this problem is quite annoying, taking you a long time trying to figure out what's the best approach without using dynamic structures, and if they are fast and not too much memory consuming. Here is an "update" of what Maniac has already discovered about the input data siz...

Go to advanced search