Pls help me with this basic exercise

Im trying to do the exercise from


I already wrote the code and by my eyes it looks all good but the result is wrong and Idk why
thx

import java.util.Scanner
fun main(){
var loop = 0
var score = Array(2){0}
val reader = Scanner(System.in)
var alice:String = readLine().toString()
var bob:String = readLine().toString()
val numerosa: List = alice.split(" “)
val numerosb:List = bob.split(” ")
for(a in 3…3) {

    when (numerosa[loop].toInt()) {
        in numerosb[loop].toInt() + 1..100 -> score[0] += 1
        in numerosb[loop].toInt() - 1..0 -> score[1] += 1
    }
    loop += 1
}

println("{score[0]} {score[1]}")

}

  1. 3…3 is incorrect, what should it be? https://kotlinlang.org/docs/reference/ranges.html#ranges-and-progressions

  2. in is a protected keyword. How can you write it? https://kotlinlang.org/docs/reference/java-interop.html#escaping-for-java-identifiers-that-are-keywords-in-kotlin

  3. you don’t use the reader you just created, remove it.

  4. if the code below would be written correctly (see 1), what does the following code print and why?

    for(a in 3...3) {
        println(a)
    }
    


    It will only print: “3”.
    Ask for the answer after you tried to figure out why…

If you need more help, just ask.