fork download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var log0 = new int[] {1, 2, 3, 4};
  9. var log1 = new int[] {1, 1, 4, 4};
  10. var rslt = log0.Zip(log1, (x,y) => x+y);
  11. foreach(var k in rslt)
  12. Console.WriteLine(k);
  13. }
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(10,25): error CS1061: Type `int[]' does not contain a definition for `Zip' and no extension method `Zip' of type `int[]' could be found (are you missing a using directive or an assembly reference?)
/usr/lib/mono/2.0/mscorlib.dll (Location of the symbol related to previous error)
prog.cs(10,9): error CS0825: The contextual keyword `var' may only appear within a local variable declaration
prog.cs(11,26): error CS0841: A local variable `rslt' cannot be used before it is declared
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty