Hello coders,
What version of VB.NET is used?
More specifically, why does this code not compile?
Imports System.Linq
Module Solution
' Auto-generated code below aims at helping you parse
' the standard input according to the problem statement.
Sub Main ()
Dim n as Integer
n = Console.ReadLine() ' the number of temperatures to analyse
Dim temps as String = Console.ReadLine() ' the n temperatures expressed as integers ranging from -273 to 5526
Dim tempList As IList(Of Integer) =
(From t In temps.Split(" "c) Select Integer.Parse(t)).ToList()
Dim res As Integer = 0
' Write an action using Console.WriteLine()
' To debug: Console.Error.WriteLine("Debug messages...")
Console.WriteLine(res)
End Sub
End Module