That's been a few weeks, so I've forgotten exactly what I should have done. However -
1) You are right - changing Real("pi") to Compute("pi") did work.
2) However, ANS(pi->cmp()) did not work (it showed 3.14159 as the correct answer).
Thanks for your help,