fork download
  1. using System;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. IEnumerable<int> zeros = Enumerable.Repeat(0, 100);
  10. int[][][] array = new int[][][] { zeros.ToArray(), zeros.ToArray(), zeros.ToArray() };
  11.  
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(10,35): error CS0029: Cannot implicitly convert type `int[]' to `int[][]'
prog.cs(10,35): error CS0029: Cannot implicitly convert type `int[]' to `int[][]'
prog.cs(10,35): error CS0029: Cannot implicitly convert type `int[]' to `int[][]'
Compilation failed: 3 error(s), 0 warnings
stdout

Standard output is empty