Is there anything wrong with my code?

It's not wrong, per se (good practise, even), but without telling the compiler what "REVERSE" means, it's a real non-starter.