C# Runtime Error Convert Strings to Int

Hello,

i wanted to solve the Problem: ENG5 Problem - CodeChef.

But when i tried to get and convert the Input with the following code (c#). The same Code works in visualStudio:

String notImportant = Console.ReadLine();

 String [] nums = Console.ReadLine().Split(' ');
 int[] itemTypes = Array.ConvertAll(nums, int.Parse); }

This results in an RuntimeError.

i don t understand why this happens.

Have a nice evening
Jacob

“The first quote is different than the other” i dont understand what you mean.
still ty for your answer