fork download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. class Test
  5. {
  6. static void Main(string[] args)
  7. {
  8. List myInt = new List();
  9. myInt.Add(1);
  10. myInt.Add(2);
  11. myInt.Add(3);
  12. for(int i=0;i<myInt.Count;i++)
  13. {
  14.  
  15. Response.Write("MyInts:{0}",myInt[i]);
  16. }
  17. }
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(8,7): error CS0305: Using the generic type `System.Collections.Generic.List<T>' requires `1' type argument(s)
/usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
prog.cs(9,7): error CS0841: A local variable `myInt' cannot be used before it is declared
prog.cs(10,7): error CS0841: A local variable `myInt' cannot be used before it is declared
prog.cs(11,7): error CS0841: A local variable `myInt' cannot be used before it is declared
prog.cs(12,21): error CS0841: A local variable `myInt' cannot be used before it is declared
prog.cs(15,14): error CS0103: The name `Response' does not exist in the current context
Compilation failed: 6 error(s), 0 warnings
stdout
Standard output is empty