fork download
  1. using static System.Console;
  2. using System.IO;
  3. using System.Linq;
  4.  
  5. public class Program {
  6. public static void Main() => foreach (var item in Directory.EnumerateFiles(".", "*", SearchOption.AllDirectories).Select(Path.GetFileName);) WriteLine(item);
  7. }
  8.  
  9. //https://pt.stackoverflow.com/q/89296/101
Compilation error #stdin compilation error #stdout 0.04s 17636KB
stdin
Standard input is empty
compilation info
prog.cs(6,37): error CS1519: Unexpected symbol `foreach' in class, struct, or interface member declaration
prog.cs(6,50): error CS1519: Unexpected symbol `in' in class, struct, or interface member declaration
prog.cs(6,76): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
prog.cs(6,79): error CS1519: Unexpected symbol `.' in class, struct, or interface member declaration
prog.cs(6,114): error CS1519: Unexpected symbol `)' in class, struct, or interface member declaration
prog.cs(6,138): error CS1001: Unexpected symbol `)', expecting identifier
prog.cs(6,116): error CS1520: Class, struct, or interface method must have a return type
prog.cs(6,141): error CS1519: Unexpected symbol `)' in class, struct, or interface member declaration
prog.cs(6,156): error CS1001: Unexpected symbol `)', expecting identifier
prog.cs(6,143): error CS1520: Class, struct, or interface method must have a return type
Compilation failed: 10 error(s), 0 warnings
stdout
Standard output is empty