language: C# (mono-2.8)
date: 98 days 13 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
using System;
 
public class Test
{
        public static void Main()
        {
                int n;
                while ((n = int.Parse(Console.ReadLine()))!=42)
                        Console.WriteLine(n);
        }
}
  • upload with new input
  • result: Runtime error     time: 0.04s    memory: 39608 kB     signal: -1

    Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
    Parameter name: s
      at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0 
      at Test.Main () [0x00000] in <filename unknown>:0