using System; public class Test { static int GetInt() { return int.Parse(Console.ReadLine()); } public static void Main() { checked { uint x = (uint)GetInt(); } } }
-1
Standard output is empty
Unhandled Exception: System.OverflowException: Number overflow. at Test.Main () [0x00000] in <filename unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.OverflowException: Number overflow. at Test.Main () [0x00000] in <filename unknown>:0