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. uint x = GetInt();
  11. }
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
-1
compilation info
prog.cs(10,14): error CS0266: Cannot implicitly convert type `int' to `uint'. An explicit conversion exists (are you missing a cast?)
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty