fork download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. int[] msv = { -1, 2, 3, -4 };
  9. var res = from n in msv
  10. where n > 0
  11. select n; // 2, 3
  12. for(int i in res) {
  13. Console.WriteLine(i);
  14. }
  15. }
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(12,28): error CS1525: Unexpected symbol `in', expecting `)', `,', `;', `[', or `='
prog.cs(14,17): error CS1525: Unexpected symbol `}', expecting `)', `,', `;', `[', or `='
prog.cs(16,1): error CS8025: Parsing error
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty