fork download
  1. object Main extends App{
  2. override def main (args: Array[String]){
  3. val t = readInt;
  4. for(i <- 1 to t){
  5. var (a,v) = readLine.split(' ')
  6. println(a,b)
  7. }
  8. }
  9. }
Compilation error #stdin compilation error #stdout 0.44s 51980KB
stdin
3
1 2
100 200
10 40
compilation info
Main.scala:5: error: constructor cannot be instantiated to expected type;
 found   : (T1, T2)
 required: Array[String]
            var (a,v) = readLine.split(' ')
                ^
Main.scala:6: error: too many arguments (2) for method println: (x: Any)Unit
            println(a,b)
                      ^
two 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