fork download
  1. using System;
  2. using System.IO;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. Console.Out.WriteLine(goo("abcedfg")+ " " + goo(""));
  9.  
  10. public string goo(string s)
  11. {
  12. return (s.Length <= 1) ? s : goo(s.Substring(1)) + s.ElementAt(0);
  13. }
  14. }
  15.  
  16.  
  17.  
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(10,2): error CS1525: Unexpected symbol `public'
prog.cs(10,19): error CS1525: Unexpected symbol `('
prog.cs(18,0): error CS1525: Unexpected symbol `}'
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty