Main.scala:11: error: '}' expected but ';' found.
println(x.match{
^
Main.scala:11: error: identifier expected but 'match' found.
println(x.match{
^
Main.scala:19: error: eof expected but '}' found.
}
^
three errors found
spoj: The program compiled successfully, but Main.class was not found.
Class Main should contain method: def main(args: Array[String]).