On Sun, Feb 21, 2010 at 1:46 PM, shamir shakir <[email protected]> wrote:

> code 1:
[...]
>    while(scanf("%li %li", &min, &max) != EOF)

> code 2:
[...]
>    while((scanf("%d %d", &i, &j)))

You're not checking the return from scanf. That's probably the problem.

-- 
PJH

http://shabbleland.myminicity.com/env
http://www.chavgangs.com/register.php?referer=9375

Reply via email to