import java.util.{Calendar => C}object PronamaCal { def main(args:Array[String]) : Unit = { val cal = C.getInstance (Seq.fill((7 - (cal.get(C.DATE) % 7) + cal.get(C.DAY_OF_WEEK)) % 7)(" ") ++ (1 to cal.getActualMaximum(C.DATE))).map({ case x : Int => " %2d ".format(x) case x => x }).grouped(7).map(x => ("" /: x)(_ + _)).foreach(println) }}
Standard input is empty
/opt/scala/bin/scalac: line 50: /dev/null: Permission denied spoj: The program compiled successfully, but Main.class was not found. Class Main should contain method: def main(args: Array[String]).
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!