fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. static int GetInt() {
  6. return int.Parse(Console.ReadLine());
  7. }
  8. public static void Main()
  9. {
  10. checked {
  11. uint x = (uint)GetInt();
  12. }
  13. }
  14. }
Runtime error #stdin #stdout #stderr 0.03s 36504KB
stdin
-1
stdout
Standard output is empty
stderr
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