fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main(string[] args)
  6. {
  7.  
  8. for(int i=1; i< int.Parse(args[0]);i++)
  9. {
  10. int length = args[i].Length / 2;
  11. string sub = args[i].Substring(length,length);
  12. Console.WriteLine(sub);
  13. }
  14.  
  15. // your code here
  16. }
  17. }
Runtime error #stdin #stdout #stderr 0s 134976KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Unhandled Exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at Test.Main (System.String[] args) [0x00027] in <c90efeab6ec441b3a768676d4fb25e2b>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at Test.Main (System.String[] args) [0x00027] in <c90efeab6ec441b3a768676d4fb25e2b>:0