C# Runtime Error Convert Strings to Int


i wanted to solve the Problem: https://www.codechef.com/problems/ENG5.

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

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