I have to use DrRacket for this problem but every time I run the code, I get this error message "gcd: this name was defined previously and cannot be re-defined". (also I choose the language as Advanced student [custom] in DrRacket. below is my code, its a recursive function to find the greatest common divisor:
(define (gcd n m)
(cond [(= m 0) n]
[else (gcd m (modulo n m))]))
(check-expect (gcd 0) 0)
(check-expect (gcd 12 8) 4)
(check-expect (gcd 6 12 8) 2)