CSES - Aalto Competitive Programming 2024 - wk1 - Mon - Results
Submission details
Task:Backpacking
Sender:okkokko
Submission time:2024-09-02 16:51:37 +0300
Language:Scala
Status:COMPILE ERROR

Compiler report

input/t1.scala:2: error: ';' expected but '(' found.
import io.StdIn.readLine()
                        ^
one error found

Code

import io.StdIn.readLine()



object W{
  def main(): Unit = {

  val ab = readLine().split(" ")

  println((ab(0).toInt)+ab(1).toInt)
  }
}