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 ...
Search found 4 matches
- Wed Jun 24, 2015 1:55 am
- Forum: Bugs and suggestions
- Topic: ANSI C not linking lm (math.h)
- Replies: 2
- Views: 7420
- Mon Jun 15, 2015 10:32 pm
- Forum: Bugs and suggestions
- Topic: ANSI C not linking lm (math.h)
- Replies: 2
- Views: 7420
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 ...
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 ...
- Fri Feb 14, 2014 9:38 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11297 - Census
- Replies: 24
- Views: 29297
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 ...
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 ...
- Thu Nov 24, 2011 4:05 am
- Forum: Volume 100 (10000-10099)
- Topic: 10044 - Erdos Numbers
- Replies: 102
- Views: 55518
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 ...
Here is an "update" of what Maniac has already discovered about the input data ...