Receiving Scala Compilation error

Please comply to the requirements for posting here: How to Ask a Question