1 / 4
Jul 2006

Hi everybody,

first of all, I want to send a big THANK YOU to the creators of this fantastic Online Judge! It's great.

Anyway, I'd like to submit some programs in Scheme. I use DrScheme from http://www.drscheme.org (speech-level: advanced student) and the test-example that is posted in this forum doesn't work in DrScheme. In DrScheme I need to write the test-program like this:

(define (do_it n)
  (local 
  ((define (print_it n)
     (begin
    (display n)
    (newline))))
    (cond
      [(= n 42) void]
      [else 
       (begin
         (display n)
         (newline)
         (do_it (read)))])))
(do_it (read))

When I submit this to the Online-Judge (SCM guile) I get an NZEC-Error.

Now my questions:

  1. Is DrScheme compatible to this Online-Judge? (I hope the answer is yes smiley )

  2. If the answer to 1. is no: Which program can I use instead of DrScheme?

  3. If the answer to 1. is yes: My program always returns 'void' at the end - is that the reason for the error?

  4. If the answer to 1. is yes: Which speech-level of DrScheme is supported by this Online-Judge?

  5. If the answer to 1. is yes: Which interpreter(?) do I need to select when submitting: guile or qobi?

Any information about this would be very nice!

Keep going with this page

cu

rick

  • created

    Jul '06
  • last reply

    Feb '09
  • 3

    replies

  • 570

    views

  • 4

    users

  • 1

    link

6 months later

I have the same question...

What's the language option for DrScheme MzScheme?

Regards,
André.

2 months later

Hello,

The Scheme implementations available on SPOJ are slightly different than MzScheme (the scheme in DrScheme). You may have better luck writing code that works in all three implementations if you stick to the R5RS scheme implementation (no frills). To do this, in the Language menu of DrScheme you should select "Choose Language" and then select "R5RS". I can't guarantee this will work out... Let me know what happens.

1 year later

Is there any chance of more modern scheme being added ?
Like DrScheme, chicken, bigloo or ikarus?

Thanks.