fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static int getRandom()
  6. {
  7. unsafe{ int a;
  8. return a;}
  9. }
  10.  
  11. public static void Main()
  12. {
  13.  
  14. }
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(7,17): error CS0227: Unsafe code requires the `unsafe' command line option to be specified
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty