fork download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. public class Program
  5. {
  6. public static void Main()
  7. {
  8. IEnumerable<int> xs = new int[] { 1, 2, 3, 4, 5 };
  9. Console.WriteLine(xs.Length);
  10. }
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(9,30): error CS1061: Type `System.Collections.Generic.IEnumerable<int>' does not contain a definition for `Length' and no extension method `Length' of type `System.Collections.Generic.IEnumerable<int>' could be found (are you missing a using directive or an assembly reference?)
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty