How can the code be compiled and executed for testing?

The code tags are missing their surrounding []s