fork download
  1. object Solution {
  2.  
  3. def main(args: Array[String]) {
  4. /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution
  5. */
  6.  
  7. import scala.io._
  8.  
  9. val n: Int = StdIn.readLine.toInt
  10. for(i <- 0 until n){
  11. val cs = StdIn.readLine.chars
  12. }
  13. println(a)
  14. }
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
3
abcdde
baccd
eeabg
compilation info
/opt/scala/bin/scalac: line 50: /dev/null: Permission denied
Main.scala:9: error: not found: value StdIn
       val n: Int = StdIn.readLine.toInt
                    ^
Main.scala:11: error: not found: value StdIn
           val cs = StdIn.readLine.chars
                    ^
Main.scala:13: error: not found: value a
       println(a)
               ^
three errors found
spoj: The program compiled successfully, but Main.class was not found.
      Class Main should contain method: def main(args: Array[String]).
stdout
Standard output is empty