class Program {
public static void Main (string[] args) {
string S1 = Console.ReadLine();
string S2 = Console.ReadLine();
double [] D1 = Array.ConvertAll(S1.Split(' '), Double.Parse);
double [] D2 = Array.ConvertAll(S2.Split(' '), Double.Parse);
The final part of it isn't working, for some reason. After i enter the imput, the console says
Unhandled exception. System.FormatException: Input string was not in a correct format. at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type) at System.Double.Parse(String s) at System.Array.ConvertAll[TInput,TOutput](TInput[] array, Converter`2 converter) at Program.Main(String[] args) in /home/runner/distancia-entre-dois-pontos/main.cs:line 9
Can anyone help?